← Back to issue list

cli: formalize developer debug as hidden build option

View original Github issue

Metadata

Project
snapcraft
Number
#2976
Type
pull request
State
merged
Author
cjp256
Labels
—
Created
Updated
Closed

Current evaluation

Merged in snapcore/snapcraft#2976 (669e936ac), formalizing developer debug as a hidden build option and forwarding it to LXD/Multipass build environments.

Resolution: closed resolved

Reason: PR #2976 was approved and merged as commit 669e936ac, implementing the hidden build option and environment propagation.

Evaluated by: mr-cal-bot

No scores available.

Issue body

It will now be handled in the same manner as other build provider options. If it is set, it will automatically get passed through to build environment if used on host with LXD or Multipass providers. Signed-off-by: Chris Patterson <chris.patterson@canonical.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged in snapcore/snapcraft#2976 (669e936ac), formalizing developer debug as a hidden build option and forwarding it to LXD/Multipass build environments.
stealth/space-bunny-alpha — closed resolved Merged PR #2976 in commit 669e936ac, formalizing developer debug as a hidden build option passed into LXD and Multipass build environments.
stealth/space-bunny-alpha — closed resolved Merged PR #2976 formalized developer debug as a hidden build option, with automatic forwarding to LXD or Multipass build environments.
qwen/qwen3.6-35b-a3b — — Merged. Formalizes developer debug as a hidden build option, automatically passing it to LXD or Multipass build environments. Approved with passing CI. A reviewer noted managed-host handling will be addressed separately.
qwen3.6-35b-a3b-mtp-q6 — — Merged. Developer debug is now a hidden build option that automatically passes to LXD and Multipass environments. A maintainer noted the managed-host flag requires a separate fix.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1782772 --debug should not print logger.debug messages snapcraft (launchpad) closed Merged snapcore/snapcraft#2185 as commit 49cf505fc, making --debug a project-command option and preventing it from enabling developer debug logs.
74%
#2185 cli: reserve the --debug option for snapcraft projects snapcraft merged Merged #2185 in commit 49cf505fc, reserving --debug for snapcraft projects and moving Snapcraft's internal debug logging to the SNAPCRAFT_DEBUG environment variable.
74%
#1782773 Add --debug for lifecycle steps snapcraft (launchpad) closed Merged snapcraft#3718 (e2ff471b9) added --debug to open a shell in the part build environment after lifecycle errors.
73%
#1609803 snapcraft cleanbuild --no-clean-up snapcraft (launchpad) closed Cleanbuild debugging landed in snapcore/snapcraft PR #740 (commit a24083e75); follow-up PR #1404 made --debug enter a shell when builds fail.
72%