← 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
2024-11-14 09:08:47+00:00
Updated
2025-08-15 15:17:41+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

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

No evaluation history available.