Bash completion script is outdated
Metadata
Current evaluation
Snapcraft 8.7 replaced the stale manual Bash completion with an automatically generated script tracking current commands and options in merged PR #5218 (387202653).
Resolution: closed resolved
Reason: Merged PR #5218 added a dynamically generated Bash completion script that follows current Snapcraft commands and options. The maintainer confirmed it shipped with Snapcraft 8.7; commit 387202653 is the resolving change.
Evaluated by: mr-cal-bot
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 |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Snapcraft 8.7 replaced the stale manual Bash completion with an automatically generated script tracking current commands and options in merged PR #5218 (387202653). | |
| stealth/space-bunny-alpha | — | closed resolved | Outdated Bash completion was replaced with an improved, automatically generated script in Snapcraft 8.7 via PR #5218 (commit 387202653). | |
| stealth/space-bunny-alpha | — | closed resolved | Resolved in Snapcraft 8.7: PR #5218 (commit 387202653) delivered a drastically improved, automatically generated Bash completion script. | |
| 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. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/snapcraft#5218
(confidence 100%)
Merged PR adding the improved generated Bash completion script in commit 387202653.
-
Related To:
canonical/craft-cli#231
(confidence 95%)
The maintainer identified this craft-cli PR as the long-term completion-generation solution.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5218 feat: add improved bash completion script | snapcraft | merged | Merged in #5218 (commit 387202653), replacing the manually maintained Bash completion with a dynamically generated script that tracks current commands and options; shipped in Snapcraft 8.7. | |
| #453 Add in bash completion | snapcraft | merged | Merged PR #453 via commit 6ea95fd50, adding a simple Bash completion script for Snapcraft commands. | |
| #4559 bash-completion: update and improve supported completion cases | snapcraft | closed | Completion work in canonical/snapcraft#4559 was closed as stale and superseded by canonical/craft-cli#319, merged in commit 4d41d7d with generated Bash completion. | |
| #1570506 Snapcraft should use bash-completion | snapcraft (launchpad) | closed | Added bash-completion support to snapcraft via merged upstream PR #453 (commit 6ea95fd50, changelog 16e1a9d76). Shipped in snapcraft 2.9 SRU to xenial; verified by elopio and released to -updates on 2016-05-30. | |
| #1390 meta: bash completion support | snapcraft | merged | Merged PR #1390 added bash completion support for snapcraft and snapcraft metadata, landing as commit 2d01bc112. | |
| #1646213 Code completion for *.snap on the cli is broken | snapcraft (launchpad) | closed | Fixed by merged canonical/snapcraft#933 (commit 5c41e4bc), which corrected Bash completion for .snap files containing multiple dots. | |
| #222 Modernize the Bash completion definition. | charmcraft | merged | PR #222 modernized Charmcraft's Bash completion definition and was merged into master, with a noted lack of automated drift testing. | |
| #1630922 Bash completion for "push" is incomplete | snapcraft (launchpad) | closed | The completion gap was superseded by dynamically generated Bash completion, added in commit 387202653 (PR #5218). | |
| #211 Generate bash completion for the application | craft-cli | closed | Bash completion generation was implemented and released in craft-cli 2.14.0 by merged PR canonical/craft-cli#319 (commit 4d41d7d). |