canonical / craft-application

The basis for *craft applications
https://canonical-craft-application.readthedocs-hosted.com/en/latest
GNU Lesser General Public License v3.0
5 stars 7 forks source link

Managed runs with empty build plans should fail #225

Open tigarmo opened 4 months ago

tigarmo commented 4 months ago

Bug Description

The current code that loops over the build plan to launch managed runs just no-ops if the plan is empty (like if all build infos were filtered out). I can't think of a case where that shouldn't be an error instead, specially since we've decided that trying to build an empty plan in destructive mode is an error.

To Reproduce

Create a project with a build plan that will get totally filtered out (eg only builds on arm64 and you're on amd64)

part yaml

.

Relevant log output

.
syncronize-issues-to-jira[bot] commented 4 months ago

Thank you for reporting us your feedback!

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

This message was autogenerated