build environment: detect base type and use name
Metadata
Current evaluation
Merged #2623, adding build-base support so snaps with type: base use build-base or name to select their build environment.
Resolution: closed resolved
Reason: PR snapcraft#2623 was merged into master. Commit 5dea8acba added project-level build-base support underpinning environment selection for type: base.
Evaluated by: mr-cal-bot
No scores available.
Issue body
If `type: base` is used, setup a build environment as if a `base`
were specified and use `name` to determine the environment.
Signed-off-by: Sergio Schvezov <sergio.schvezov@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 #2623, adding build-base support so snaps with type: base use build-base or name to select their build environment. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged build-base support in #2623 (commit 714d946b4), detecting type: base, using name for the build environment, and decoupling it from the runtime base. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #2623 added build-base support, detecting type: base/name and decoupling the build environment from the runtime base. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged. Implements build environment detection for base type and name, introducing build-base configuration to decouple build and runtime bases. Approved, passed CI, and merged following successful local testing and reviewer discussion. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Detects base type and uses the name field to configure the build environment for type base snaps. Adds a build-base parameter for kernel and static snap builds. Verified by maintainers and merged into master with improved coverage. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2689 schema: build-base support for the snapd type | snapcraft | merged | Merged PR #2689 added schema support for using build-base with snapd and base snap types. | |
| #2700 schema: build-base support for the kernel type | snapcraft | merged | Merged in #2700 as c360ffab6, adding build-base schema support for kernel snaps while allowing them to omit base until hooks exist. | |
| #4868 Allow specifying build-base in kernel snap | snapcraft | closed | Kernel snaps gained configurable build-base support; merged PR #4914 fixed #4868 by adding interim kernel-snap bases and cross-craft-name documentation. | |
| #6426 feat: add build-base to kernel snaps | snapcraft | closed | Merged PR #6426 (commit dd924c747), adding build-base to kernel snap metadata so users can verify build-environment and target-system compatibility. | |
| #4068 meta: allow support for `build-base: devel` | snapcraft | merged | Merged PR snapcore/snapcraft#4068 added build-base: devel support, selecting Ubuntu devel images and APT repositories and setting grade to devel. | |
| #4983 Install base snap if declared as `build-base` | snapcraft | closed | Enhancement request to install a declared `build-base` snap into the build environment was closed without implementation; maintainer deferred it to interim-base kernel snap support (#4878), and the reporter agreed he had worked around it. | |
| #1835532 snapcraft behavior for type: base | snapcraft (launchpad) | closed | Implemented build-base support for base snaps; the proposed branch successfully built core20 using core18 before the issue was closed. |