-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fish completions with :4
and :0
as options
#1279
Comments
This sounds a lot like the problem described starting in this comment: #899 (comment) I hope it helps. |
@caarlos0 did you find the problem? |
I have not 😔 |
@caarlos0 I had a look. goreleaser always prints an empty line at the very end of its output: I don't believe the completion script is ready for that. The completion script actually calls Until there is a fix in Cobra, what you could do is avoid printing that empty line when the command is |
yes, that was it! I would never guess hehe Thanks @marckhouzam 🚀 |
Fix posted in #1284 |
This issue is being marked as stale due to a long period of inactivity |
PR #1284 waiting for review |
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.:If I choose
:4
and keep pressing TAB, it will keep completing:0
forever:Same happens for subcommands, e.g.:
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-L32Anyway, not sure how much of this is a bug, how much is expected and how much is us doing things wrong.
The text was updated successfully, but these errors were encountered: