docker: add the environment variable to setup core
Metadata
Current evaluation
Merged a one-line Dockerfile update adding the SNAPCRAFT_SETUP_CORE environment variable to enable straightforward snapcraft builds with classic confinement. The change was approved, passed CI checks, and successfully integrated.
Suggested action: —
No scores available.
Issue body
The Dockerfile is missing SNAPCRAFT_SETUP_CORE which would enable
straightforward snapcraft builds with classic confinement.
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
- [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] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)?
- [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)?
- [x] Have you successfully run `./runtests.sh static`?
- [x] Have you successfully run `./runtests.sh unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged a one-line Dockerfile update adding the SNAPCRAFT_SETUP_CORE environment variable to enable straightforward snapcraft builds with classic confinement. The change was approved, passed CI checks, and successfully integrated. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged changes adding the SNAPCRAFT_SETUP_CORE environment variable to the Dockerfile, enabling straightforward snapcraft builds with classic confinement. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged changes adding the SNAPCRAFT_SETUP_CORE environment variable to the Dockerfile, enabling straightforward snapcraft builds with classic confinement. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1112 core: setup core to support classic confinement. | snapcraft | merged | Merged after CI fixes and reviewer approval. Introduces SNAPCRAFT_SETUP_CORE environment variable support to manually unpack the core snap, enabling classic confinement on systems lacking /snap/core/current. | |
| #1801 lifecycle: detect docker to auto setup core | snapcraft | merged | Merged after passing CI and reviewer approval. Adds Docker container detection to automatically set up the core snap in classic confinement, modifying two files with minimal changes. | |
| #2883 docker: add core18 snap that snapcraft now uses as a base | snapcraft | merged | Merged the addition of the core18 snap as snapcraft's Docker base, updating related comments for accuracy. Approved by one reviewer, the change was integrated after a minor authorship clarification. | |
| #2520 snap: set core as a base | snapcraft | merged | Merged after reviewer approval and passing CI checks. Configures core as the snap base to enable snapcraft 3.x build functionality. The change modifies 2 files with 17 additions and 10 deletions. | |
| #4313 environment: add build-on and build-for envvars for core20 | snapcraft | merged | Merged into main. Added SNAPCRAFT_ARCH_BUILD_ON and SNAPCRAFT_ARCH_BUILD_FOR environment variables to expose build architecture details for core20. Approved, passed CI, and increased coverage. | |
| #1370 integrations: add the snapcraft Dockerfile | snapcraft | merged | Merged the snapcraft Dockerfile to centralize its source and add a required environment variable for snapcraft 2.31. Approved by one reviewer and passed CI checks. |