zarf-dev / zarf

DevSecOps for Air Gap & Limited-Connection Systems. https://zarf.dev/
Apache License 2.0
1.4k stars 170 forks source link

`zarf package create . -f typo` => misleading error message #2659

Open JoeHCQ1 opened 4 months ago

JoeHCQ1 commented 4 months ago

Environment

Device and OS: Sys76 Laptop (PopOS) App/package versions: Zarf 0.35.0 Kubernetes distro being used: k3d Other:

Steps to reproduce

  1. Clone a working UDS package such as the mattermost package.
  2. From the root directory, attempt to package it with a typo in your -f value: zarf package create . -f stream (should be upstream)

Expected result

The error message tells me that the value after the -f flag is invalid.

Actual Result

The error message tells me the problem is in my zarf.yaml file.

Visual Proof (screenshots, videos, text, etc)

image

Severity/Priority

Low, but I think it's not benign as an unclear error may lead someone to stop experimenting with the application and so hurt adoption.

Additional Context

Add any other context or screenshots about the technical debt here.

AustinAbro321 commented 3 months ago

I agree with this as I've also been confused in a similar way in the past. Likely Compose Components should return an error if there are no compatible components.