← Back to issue list

container/VM builds ignore SNAPCRAFT_BUILD_INFO / SNAPCRAFT_IMAGE_INFO environment variables

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1871770
Type
issue
State
closed
Author
~jamesh
Labels
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Abandoned and closed without resolution. Container and VM build providers continue to ignore SNAPCRAFT_BUILD_INFO and SNAPCRAFT_IMAGE_INFO, preventing manifest generation and vulnerability notifications in LXD and Multipass builds.

Suggested action:

No scores available.

Issue body

When Snapcraft uses the Multipass or LXD build providers, it passes a small set of environment variables through to the Snapcraft instance running inside the VM or container. This means that certain features controlled by environment variables such as SNAPCRAFT_BUILD_INFO and SNAPCRAFT_IMAGE_INFO are only functional when using the host or managed-host providers. This means that you can't e.g. perform an LXD or Multipass build of a snap that will include snap/manifest.yaml, so won't receive notifications about security vulnerabilities in staged packages from Ubuntu.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Abandoned and closed without resolution. Container and VM build providers continue to ignore SNAPCRAFT_BUILD_INFO and SNAPCRAFT_IMAGE_INFO, preventing manifest generation and vulnerability notifications in LXD and Multipass builds.
qwen/qwen3.6-35b-a3b Abandoned and closed without resolution. Container and VM build providers continue to ignore SNAPCRAFT_BUILD_INFO and SNAPCRAFT_IMAGE_INFO, preventing manifest generation and security notifications in isolated builds.
qwen3.6-35b-a3b-mtp-q6 Closed without resolution, effectively abandoned. Container and VM builds ignoring SNAPCRAFT_BUILD_INFO and SNAPCRAFT_IMAGE_INFO environment variables received no comments or fixes.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#3031 build_providers: pass through SNAPCRAFT_{BUILD,IMAGE}_INFO to container or VM snapcraft merged Merged. Passes SNAPCRAFT_BUILD_INFO and SNAPCRAFT_IMAGE_INFO to container and VM providers, fixing manifest generation. Renamed CLI flag to --enable-manifest and added strtobool parsing to resolve test failures.
75%
#1822265 SNAPCRAFT_BUILD_ENVIRONMENT_* change doesn't apply to existing VMs snapcraft (launchpad) closed Closed without resolution. SNAPCRAFT_BUILD_ENVIRONMENT_* changes failing to apply to existing VMs were left unaddressed with zero comments, indicating the report was abandoned or marked stale.
72%