persistent option flag may doesn't work #9369
Pueringni3
started this conversation in
Bugs
Replies: 1 comment 1 reply
-
|
hi @Pueringni3 nice catch! That does indeed look like a bug/typo to me. Would you like to create a PR to fix it? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
This is my first time reporting a bug on GitHub Discussions. Please let me know if I've made any mistakes.
I found typo when reading the trivy source code.
https://github.com/aquasecurity/trivy/blob/main/pkg/flag/options.go#L319-L323
First, it checks
if f == nil:But later, it checks
if f == nilagain(maybe this is typo ( f -> flag )
Desired Behavior
Actual Behavior
Reproduction Steps
I just found typo. I didn't trigger this bug.Target
None
Scanner
None
Output Format
None
Mode
None
Debug Output
Operating System
None
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions