← Back to issue list

build_providers: pass through SNAPCRAFT_{BUILD,IMAGE}_INFO to container or VM

View original Github issue

Metadata

Project
snapcraft
Number
#3031
Type
pull request
State
merged
Author
jhenstridge
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action:

No scores available.

Issue body

- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] Have you successfully run `./runtests.sh static`? - [x] Have you successfully run `./runtests.sh tests/unit`? ----- In order to include a `snap/manifest.yaml` in a snap, you can set the `SNAPCRAFT_BUILD_INFO` environment variable. However, this doesn't work with build providers that perform a build within a container/VM, since the variable is not passed to the child Snapcraft instance. This should fix [bug #1871770][1]. [1]: https://bugs.launchpad.net/snapcraft/+bug/1871770

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b 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.
qwen3.6-35b-a3b-mtp-q6 Merged. Passes SNAPCRAFT_BUILD_INFO and SNAPCRAFT_IMAGE_INFO to containers and VMs, fixing bug #1871770. The manifest flag was renamed to --enable-manifest and updated to use strtobool for consistent parsing.
qwen3.6-35b-a3b-mtp-q6 Merged PR passing SNAPCRAFT_BUILD_INFO and SNAPCRAFT_IMAGE_INFO to container and VM providers. Fixed CI by renaming the manifest flag to --enable-manifest and using strtobool. Resolves bug #1871770.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1871770 container/VM builds ignore SNAPCRAFT_BUILD_INFO / SNAPCRAFT_IMAGE_INFO environment variables snapcraft (launchpad) closed 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.
75%