-
Notifications
You must be signed in to change notification settings - Fork 36
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
snapcraft: hardcode support for compopt to fix bash completion #630
snapcraft: hardcode support for compopt to fix bash completion #630
Conversation
@kadinsayani here's what I've checked so far:
Which gives this minimal diff:
|
Reported-by: Kadin Sayani <kadin.sayani@canonical.com> Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
0008451
to
55c4560
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm yet to test this with a snapcraft build but LGTM!
@kadinsayani @simondeziel there appears to be two different proposals for the CLI completion, this PR and #629 which one is the preferred approach? |
Dunno about the preferred way but I just tested this one and it works:
|
Amazing 🎉 |
Let's go with Simon's approach, and keep the other potential solutions in mind if we face further issues with |
@kadinsayani found that when executed by snapd, the
compopt
support detection was broken.