← Back to issue list

Feature request: create log of build environment settings and flags

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2012290
Type
issue
State
open
Author
~igorljubuncic-deactivatedaccount
Labels
—
Created
Updated
Closed
—

Current evaluation

Feature request for a build-environment log (OS/tool/compiler versions, CFLAGS, env overrides) via CLI flag. No maintainer response in 1292 days. Nearby SNAPCRAFT_BUILD_INFO manifest covers packages/project metadata but not compiler versions or effective build flags.

Suggested action: needs triage

Reason: The issue has zero labels, zero comments, and no maintainer response for 1292 days, so it has never been triaged — the default action. It is a well-articulated feature request rather than a bug, and it is only partially addressed: `snapcraft/services/lifecycle.py::generate_manifest()` behind `SNAPCRAFT_BUILD_INFO` emits `snap/manifest.yaml` with `snapcraft_version`, `snapcraft_os_release_id/version_id`, `parts`, `image_info`, `build_packages`, `build_snaps`, and `primed_stage_packages`, covering roughly the OS/tool-version and metadata bullets. However, `snapcraft/models/manifest.py` (added in commit 46987fbb7, 'feat(lifecycle): generate snap manifest (#4611)') hardcodes `build_packages=[]` and `build_snaps=[]` and carries a literal `# TODO: add assumes, environment, hooks, slots`, so the requested compiler versions and effective compilation flags (CFLAGS etc.) are genuinely still absent. Notably, the requested CLI-flag delivery conflicts with existing direction: docs/reference/build-environment-options.rst states `--enable-manifest` is 'deprecated and removed' for core24+, making the env var the only supported path.

Evaluated by: mr-cal-bot

Impact: 42 Quick Win: 9 Complexity: 62 Confidence: 78 Actionability: 55

Issue body

It would be very useful if Snapcraft provided a complete build log of the internal environment of the VM or container instance, including: - Versions of the OS and tools used, e.g.: Ubuntu 22.04 container, Snapcraft 7.3.1 - Versions of compilers and build tools used with each part/plugin, e.g.: gcc 12.2 - Compilation flags used for each part/plugin, e.g.: CFLAGS += -std=c99 -Wall -Wextra -pedantic -MMD -ggdb - Environment variable overrides (global and per part) - Any other build metadata This information would be optionally available via a command-line flag to developers so they can share exact circumstances of their snap build to others, and/or allow for easier debugging of build-related problems, e.g.: builds done natively versus say Docker, builds with certain build package overrides, differences in compilation flags between snap and non-snap versions, etc. The information would be provided as a text log when the flag is used.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 42
Quick Win: 9
Complexity: 62
Confidence: 78
Actionability: 55
needs triage Feature request for a build-environment log (OS/tool/compiler versions, CFLAGS, env overrides) via CLI flag. No maintainer response in 1292 days. Nearby SNAPCRAFT_BUILD_INFO manifest covers packages/project metadata but not compiler versions or effective build flags.
stealth/space-bunny-alpha
Impact: 48
Quick Win: 10
Complexity: 66
Confidence: 93
Actionability: 62
needs triage Untriaged request for an opt-in build-environment report containing OS and tool versions, per-part compiler flags, environment overrides, and other build metadata.
qwen3.6-35b-a3b-mtp-q6
Impact: 50
Quick Win: 30
Staleness: 90
Complexity: 40
Confidence: 65
Support Request: 20
close stale Feature request to add build environment logging with a CLI flag for debugging. Untriaged, no maintainer engagement for 1263 days.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 80
Support Request: 10
needs triage Feature request to add a CLI flag to Snapcraft that logs build environment details (OS, tools, flags, env vars) for debugging and reproducibility. Untriaged and inactive for over 3 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 45
Confidence: 85
Support Request: 10
close stale Feature request to log build environment details and flags for debugging. Untriaged, zero comments, inactive for over 3 years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 60
Confidence: 75
Support Request: 10
needs triage Feature request to add a CLI flag for logging build environment details, tool versions, compilation flags, and environment variables for debugging and reproducibility. Unresponded and inactive for over three years.

Update history

Date Change
created

Related work

  • Related To: snapcraft#4611 (confidence 55%)

    Inferred from commit 46987fbb7 'feat(lifecycle): generate snap manifest (#4611)', which added the SNAPCRAFT_BUILD_INFO manifest generation that partially overlaps this request; the PR number itself is not directly verifiable from the repo, so confidence is moderate.

Related issues

No related issues found above the similarity threshold.