← Back to issue list

core26: YAML error messages refer to core24

View original Github issue

Metadata

Project
snapcraft
Number
#6322
Type
issue
State
open
Author
steinbro
Labels
Status: Triaged Type: Bug
Created
Updated
Closed

Current evaluation

Error message for unsupported 'architectures' key incorrectly says 'core24' when using base 'core26'. Triaged bug with clear reproduction.

Suggested action: keep open

Reason: This is a valid, triaged bug: `Core26Project` inherits from `Core24Project`, and the hardcoded error message in `snapcraft/models/project.py:2479` always says 'core24' regardless of the actual base. The fix requires making the error message dynamic or overriding the `architectures` field in `Core26Project` with a corrected message.

Impact: 50 Quick Win: 40.0 Staleness: 45 Complexity: 20 Confidence: 85 Support Request: 0

Issue body

### Check existing issues - [x] I've verified that this bug isn't described by any existing issues. ### Bug description When trying to use some features that were removed in core24, such as the `architectures` key, some Snapcraft error messages say `not supported for base 'core24'` even when base core26 is in use. ### Steps to reproduce Run `snapcraft pack` on below YAML file. ### Environment Snapcraft latest/edge on Ubuntu 26.04 ### snapcraft.yaml ```yaml name: core26-reproducer base: core26 grade: devel confinement: strict architectures: - build-on: amd64 build-for: amd64 ``` ### Log output ```shell Bad snapcraft.yaml content: - 'architectures' key is not supported for base 'core24'. Use 'platforms' key instead. (in field 'has-base.core26.architectures', input: [{'build-on': 'amd64', 'build-for': 'amd64'}]) ```

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6
Impact: 50
Quick Win: 40.0
Staleness: 45
Complexity: 20
Confidence: 85
Support Request: 0
keep open Error message for unsupported 'architectures' key incorrectly says 'core24' when using base 'core26'. Triaged bug with clear reproduction.
qwen/qwen3.6-35b-a3b
Staleness: 10
Complexity: 15
Confidence: 90
Support Request: 5
keep open Bug where Snapcraft error messages incorrectly reference base 'core24' when building with 'core26'. Triaged and awaiting fix.
qwen3.6-35b-a3b-mtp-q6
Staleness: 5
Complexity: 15
Confidence: 95
Support Request: 0
needs triage Bug where Snapcraft error messages incorrectly reference base 'core24' when using 'core26'. Currently unlabelled and awaiting maintainer triage.
qwen3.6-35b-a3b-mtp-q6
Staleness: 0
Complexity: 20
Confidence: 90
Support Request: 0
needs triage Bug report where Snapcraft error messages incorrectly reference core24 instead of core26 when using the core26 base. Unlabelled and awaiting maintainer triage.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.