feat(snapcraft_legacy): support verbosity args in non-lifecycle commands
Metadata
Current evaluation
Merged to add verbosity argument support to non-lifecycle commands in snapcraft legacy, allowing them to accept and ignore these flags. Resolves #5298 after passing CI and receiving three approvals.
Suggested action: —
No scores available.
Issue body
- [x] Have you followed the [guidelines for contributing](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `make lint`?
- [x] Have you successfully run `make test`?
---
Adds support for verbosity args in non-lifecycle commands in snapcraft legacy.
Verbosity gets parsed by modern snapcraft, so this PR allows legacy commands to accept and ignore verbosity args.
Fixes https://github.com/canonical/snapcraft/issues/5298
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged to add verbosity argument support to non-lifecycle commands in snapcraft legacy, allowing them to accept and ignore these flags. Resolves #5298 after passing CI and receiving three approvals. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged changes allowing legacy snapcraft commands to accept and ignore verbosity arguments, resolving issue #5298. Aligns legacy command parsing with modern snapcraft behavior. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Adds support for verbosity arguments in snapcraft legacy non-lifecycle commands, allowing them to accept and ignore args parsed by modern snapcraft. Fixes #5298. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5646 feat(snapcraft_legacy): support verbosity args | snapcraft | merged | Merged. Implements craft-cli verbosity arguments and environment variable support for core20 commands in snapcraft_legacy, preserving --enable-developer-debug alias. Approved by reviewers and resolves #5423. | |
| #4024 cli: pass `--verbose` and `-v` to snapcraft_legacy | snapcraft | merged | Merged into main. Enables passing --verbose and -v flags to snapcraft_legacy for core18 and core20 builds. Approved by reviewer, passed CI, and integrated without coverage changes. | |
| #5424 Add `--verbosity`, `--verbose`, and `--quiet` for legacy commands in Snapcraft 7 | snapcraft | closed | Implemented in Snapcraft 8.11 via PR #5423. The verbosity flags were added to the current release, but the maintainer declined to backport the enhancement to Snapcraft 7, closing the issue. | |
| #5423 Add `--verbosity`, `--verbose`, and `--quiet` for legacy commands in Snapcraft 8 | snapcraft | closed | The verbosity flag enhancement for legacy Snapcraft 8 commands was closed without implementation. A maintainer outlined a level mapping, but the feature was deferred following triage and Jira ticket creation. |