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

fix quiet bug regression #299

Merged
merged 1 commit into from
Aug 23, 2024
Merged

Conversation

patrickjcasey
Copy link
Contributor

@patrickjcasey patrickjcasey commented Aug 23, 2024

When running hc check --format json -v quiet https://github.com/mitre/hipcheck, the following error occurs on origin/main

image

Here is the tip of origin/main with the policy file error omitted

image

The tip of this branch has nothing printed before the JSON is output

image

If anyone has an idea of how to test this/ensure I hid everything that should be hidden when -v quiet is passed, I would love to hear it!

@alilleybrinker
Copy link
Collaborator

Regarding testing, we've talked about doing snapshot testing with cargo-insta and that's what I'd like to do. Can you open an issue for it in the next milestone?

@patrickjcasey patrickjcasey changed the title Patrickjcasey/quiet flag bug fix quiet bug regression Aug 23, 2024
@patrickjcasey patrickjcasey requested review from a team, cstepanian and alilleybrinker and removed request for a team August 23, 2024 18:46
@patrickjcasey patrickjcasey marked this pull request as ready for review August 23, 2024 19:01
@alilleybrinker alilleybrinker merged commit be480c3 into main Aug 23, 2024
9 checks passed
@patrickjcasey patrickjcasey deleted the patrickjcasey/quiet-flag-bug branch August 27, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants