canonical / snapcraft

Package, distribute, and update any app for Linux and IoT.
https://snapcraft.io
GNU General Public License v3.0
1.18k stars 443 forks source link

Improve error reporting for snap builds #4876

Open mubes opened 3 months ago

mubes commented 3 months ago

What needs to get done

When building a kernel with core24, I got the following error;

Bad snapcraft.yaml content:
- Snap base must be declared when type is not base, kernel or snapd                                                                                                                                                                                      
Full execution log: ....etc

This error was because I had a base: core24 statement in my yaml. This error would be better expressed as something like Snap base definition not required when type is base, kernel or snapd. This would make the error message a little more useful.

Why it needs to get done

Making error messages more self-explainatory will aid adoption.

syncronize-issues-to-jira[bot] commented 2 months ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-3128.

This message was autogenerated