build environment: detect base type and use name
Metadata
Current evaluation
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.
Suggested action: —
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 |
|---|---|---|---|---|
| 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Configures the build environment based on the detected base type and name. Resolves build-base usage discussions for kernels and static snaps, enabling successful core20 snap construction. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #3105 build provider: clean incompatible build-environments | snapcraft | merged | Merged updates to clean incompatible build environments caused by base mismatches, missing base records, or version differences. Implemented Debian-compliant version comparison and updated test scenarios. Approved and merged. |