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 feedback if specifying incompatible argument on cosign sign --attachment #2449

Merged
merged 2 commits into from
Nov 17, 2022

Conversation

ChaosInTheCRD
Copy link
Contributor

Signed-off-by: chaosinthecrd [email protected]

This is a tiny change, but when using the cosign sign --attachment flag, it didn't seem clear why I was getting an error back. Of course the reason why is that the only attachment string it will accept is sbom, which is making me wonder whether at least temporarily this would be better as a boolean flag --sbom-attachment until there are other attachment types.

I have changed the error message, just as a suggestion as I feel it makes it more clear as to what is going on as opposed to

Error: flag: help requested
main.go:62: error during command execution: flag: help requested

znewman01
znewman01 previously approved these changes Nov 11, 2022
Copy link
Contributor

@znewman01 znewman01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint is related, annoyingly. Sorry!

Otherwise LGTM

Signed-off-by: chaosinthecrd <[email protected]>
@ChaosInTheCRD
Copy link
Contributor Author

hopefully that's good to go 😄

@znewman01 znewman01 merged commit 6b309df into sigstore:main Nov 17, 2022
@github-actions github-actions bot added this to the v1.14.0 milestone Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants