Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error message for unsupported 24.04 base #1991

Open
yanksyoon opened this issue Nov 14, 2024 · 0 comments
Open

Better error message for unsupported 24.04 base #1991

yanksyoon opened this issue Nov 14, 2024 · 0 comments
Labels
Enhancement New feature or request

Comments

@yanksyoon
Copy link

What needs to get done

Create a model validator when using the to be deprecated bases model that raises helpful message.

raise errors.CraftValidationError(

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.

@yanksyoon yanksyoon added the Enhancement New feature or request label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant