Skip to content

Fish completions with :4 and :0 as options #1279

@caarlos0

Description

@caarlos0

We recently enabled completions on goreleaser, and it works pretty well.

One of the issues we found, though, is that on fish it returns :4 as an option, e.g.:

image

If I choose :4 and keep pressing TAB, it will keep completing :0 forever:

image

Same happens for subcommands, e.g.:

image

I think it might be related to the fact that we do some "hacky" stuff to make release be the default command instead of root (is there a better way of doing that?): https://github.com/goreleaser/goreleaser/blob/master/cmd/root.go#L30-L32

Anyway, not sure how much of this is a bug, how much is expected and how much is us doing things wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions