feat(snapcraft_legacy): support verbosity args
Metadata
Current evaluation
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.
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`?
---
Allows using craft-cli verbosity arguments and environment variables for core20 commands.
`--enable-developer-debug` is still supported in legacy snapcraft. It is an alias to `--verbosity=debug`.
Creates https://github.com/canonical/snapcraft/issues/5658
Fixes #5423
(SNAPCRAFT-1043)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged implementation adding craft-cli verbosity arguments and environment variables for core20 commands in snapcraft_legacy. The --enable-developer-debug flag persists as an alias. Resolves #5423 following dismissal of unrelated spread failures. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged changes add craft-cli verbosity arguments and environment variables for core20 commands in snapcraft_legacy, resolving #5423. The --enable-developer-debug flag remains supported as an alias. Unrelated test failures were noted. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5680 feat(snapcraft_legacy): support verbosity args in non-lifecycle commands | snapcraft | merged | 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. | |
| #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. | |
| #3958 cli: set default verbosity level with environment variable | snapcraft | merged | Merged. Adds SNAPCRAFT_VERBOSITY_LEVEL env var for default CLI verbosity. Author noted implementation flaws causing duplicate logs and precedence issues, opening craft-cli issue #128 for a proper fix. | |
| #264 Support CRAFT_VERBOSITY_LEVEL | craft-application | closed | Added support for the CRAFT_VERBOSITY_LEVEL environment variable to configure initial verbosity, matching Snapcraft's implementation. The change was merged via pull request #289 in the craft-application repository. | |
| #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. | |
| #4647 Setting verbosity via environment variable no longer works on 8.0.4.post33+git61228836 | snapcraft | closed | The SNAPCRAFT_VERBOSITY_LEVEL environment variable was ignored because craft-application and snapcraft did not read or forward it. Merging pull request #4699 restored the functionality. The reporter verified the fix. | |
| #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. |