Skip to content
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: Fix LXD snap bash completions #674

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

kadinsayani
Copy link
Contributor

Fixes canonical/lxd#14635, canonical/lxd#14690 and canonical/lxd#14648.

This PR changes the permissions, location, and file extension of the lxc bash completions script to ensure correct execution. The bash-completions package is also added to the snap stage packages.

simondeziel
simondeziel previously approved these changes Dec 20, 2024
Copy link
Member

@simondeziel simondeziel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I have 2 questions. Thanks

snapcraft.yaml Show resolved Hide resolved
snapcraft.yaml Outdated Show resolved Hide resolved
tomponline added a commit to canonical/lxd that referenced this pull request Dec 20, 2024
This PR fixes the logic in `cmpRemotes` to ensure remotes are
contextually completed correctly based on the current remote. While
testing canonical/lxd-pkg-snap#674, I noticed
that the `local` remote was not completed while on a different remote.
This commit changes the permissions, location, and file extension of the
`lxc` bash completions script to ensure correct execution.

Signed-off-by: Kadin Sayani <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lxc remote switch should suggest completion of any locally configured remote
3 participants