← Back to issue list

Better error message for unsupported 24.04 base

View original Github issue

Metadata

Project
charmcraft
Number
#1991
Type
issue
State
open
Author
yanksyoon
Labels
Created
Updated
Closed

Current evaluation

Request to improve the cryptic 'base requires platforms definition' error when using the deprecated bases model with 24.04. No maintainer response, no labels, 0 comments. The bases model is deprecated in favor of platforms.

Suggested action: needs triage

Reason: No labels, no maintainer comments, 0 responses in 655 days. The bases model is deprecated (docs confirm 'bases is deprecated, replaced by base, build-base, and platforms'), so this is a low-priority UX improvement for a deprecated code path. Needs triage to decide whether to address or close as the feature is being phased out.

Impact: 25 Quick Win: 20.0 Staleness: 75 Complexity: 20 Confidence: 70 Support Request: 10

Issue body

### What needs to get done Create a model validator when using the to be deprecated `bases` model that raises helpful message. https://github.com/canonical/charmcraft/blob/ff00a899bb4bf203b18208e42ae1fbef12ccf238/charmcraft/models/project.py#L492 ### Why it needs to get done Currently the `charmcraft.yaml`, when using model.bases with 24.04, will error with ``` Bad charmcraft.yaml content: - base requires 'platforms' definition: {'name': 'ubuntu', 'channel': '24.04', 'architectures': ['amd64']} (in field 'bases[2]') ``` messaage. This is not a good UX. Many people have been raising duplicate questions regarding this cryptic errior on the Charmcraft matrix channel.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 25
Quick Win: 20.0
Staleness: 75
Complexity: 20
Confidence: 70
Support Request: 10
needs triage Request to improve the cryptic 'base requires platforms definition' error when using the deprecated bases model with 24.04. No maintainer response, no labels, 0 comments. The bases model is deprecated in favor of platforms.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 20
Confidence: 80
Support Request: 5
needs triage Request to add a model validator for the deprecated bases field in charmcraft.yaml to provide a clear error message when Ubuntu 24.04 is used, replacing the current cryptic error. Currently untriaged and inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 20
Confidence: 85
Support Request: 10
needs triage Add a model validator for the deprecated bases model to provide a clear error for unsupported Ubuntu 24.04 bases, replacing the current cryptic platforms error. Currently untriaged and inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 20
Confidence: 85
Support Request: 10
needs triage Request to add a model validator for the deprecated bases model to provide a clearer error message when Ubuntu 24.04 is used. Currently untriaged, unlabelled, and inactive with no maintainer engagement.
qwen3.6-35b-a3b-mtp-q6
Staleness: 75
Complexity: 20
Confidence: 60
Support Request: 10
needs triage Implement a model validator to replace the cryptic error for unsupported Ubuntu 24.04 bases in charmcraft.yaml with a clear message. Open, unassigned, and inactive for over 300 days.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.