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

Write warning on missing version v to stderr #3263

Merged
merged 2 commits into from
Nov 28, 2024
Merged

Conversation

lbergnehr
Copy link
Contributor

What does this change

When getting a bundle through a reference, e.g. porter explain --reference..., and the version of the bundle does not contain a v, write warning on missing v to stderr. Writing it to stdout can cause structured results, such as when using --format json to become invalid.

What issue does it fix

Closes #3262

Checklist

  • Did you write tests?
  • Did you write documentation?
  • Did you change porter.yaml or a storage document record? Update the corresponding schema file.
  • If this is your first pull request, please add your name to the bottom of our [Contributors][contributors] list. Thank you for making Porter better! 🙇‍♀️

@lbergnehr lbergnehr changed the title Write warning in missing version v to stderr Write warning on missing version v to stderr Nov 27, 2024
Writing it to stdout can cause structured results, such as when using
`--format json` to become invalid.

Signed-off-by: Leo Bergnéhr <leo@bergnehr.se>
@schristoff schristoff merged commit 24f99f2 into getporter:main Nov 28, 2024
39 of 40 checks passed
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.

Warning on reference version not containing a v written to stdout
3 participants