← Back to issue list

Bash completion script is outdated

View original Github issue

Metadata

Project
snapcraft
Number
#5022
Type
issue
State
closed
Author
boukendesho
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed

Current evaluation

Resolved in snapcraft 8.7. The outdated bash completion script was replaced with a drastically improved, automatically generated version. The long-term fix was implemented via the craft-cli integration.

Suggested action:

No scores available.

Issue body

### Bug Description The [snapcraft-completion](https://github.com/canonical/snapcraft/blob/main/debian/snapcraft-completion) is very outdated. Last time update is 6 year ago. ### To Reproduce Open a terminal, type snapcraft and press tab ### Environment Ubuntu 24.04 LTS ### snapcraft.yaml ```yaml / ``` ### Relevant log output ```shell / ``` ### Additional context _No response_

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Resolved in snapcraft 8.7. The outdated bash completion script was replaced with a drastically improved, automatically generated version. The long-term fix was implemented via the craft-cli integration.
qwen/qwen3.6-35b-a3b Resolved in snapcraft 8.7. The outdated bash completion script was replaced with a drastically improved, automatically generated version implemented via craft-cli.
qwen/qwen3.6-35b-a3b Resolved in snapcraft 8.7. The bash completion script is now drastically improved and automatically generated, implementing the long-term fix via craft-cli.
qwen3.6-35b-a3b-mtp-q6 Fixed in snapcraft 8.7. The bash completion script is now automatically generated, replacing the outdated manual version and implementing the long-term craft-cli solution.
qwen3.6-35b-a3b-mtp-q6 Resolved in snapcraft 8.7 by replacing the outdated script with a drastically improved, automatically generated version via craft-cli integration.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1570506 Snapcraft should use bash-completion snapcraft (launchpad) closed Snapcraft bash-completion integration was implemented and verified. Tab completion now functions for all snapcraft commands, resolving the missing shell integration with no regression risk.
77%
#1630922 Bash completion for "push" is incomplete snapcraft (launchpad) closed Reported incomplete bash completion for snapcraft push, missing *.snap files and the --release flag. Closed with zero comments after over nine years, indicating the report was abandoned or superseded without a fix.
73%
#2111 feat: add improved bash completion script charmcraft merged Merged an improved bash completion script replacing the legacy version. Approved by two reviewers, the update adds 34 lines and removes 195 across six files. Resolves CRAFT-3874.
73%
#4559 bash-completion: update and improve supported completion cases snapcraft closed Closed as stale. The bash-completion script will be superseded by @bepri's solution in canonical/craft-cli#319.
72%