Skip to content

Error when building package with zero components #3307

@phillebaba

Description

@phillebaba

Describe what should be investigated or refactored

When a Zarf package has flavors set on all of the components, it is possible to build a package that has no components. This occurs either when no flavor is defined or when the set flavor does not match any component. The current behavior is to create the package and report everything was successful.

Links to any relevant code

N/A

Additional context

I do not see a use case where someone would want to create a package without a component. It would be better to tell the user with an error that no components match the filter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions