We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As os.Exit() in go skips all deferred instructions, the statement defer os.RemoveAll(path) on line 116 gets executed only when our image has visible vulnerabilities.
defer os.RemoveAll(path)
So almost every time this tool is used the temporary directory /tmp/analyze-local-image-* remains.
/tmp/analyze-local-image-*
The text was updated successfully, but these errors were encountered:
Good catch!
Sorry, something went wrong.
contrib: Use return instead of os.Exit(1) in analyze-local-images
return
os.Exit(1)
98301c1
In order to cleanup properly the allocated resources (`defer`). Fixes #117
1040dbb
No branches or pull requests
As os.Exit() in go skips all deferred instructions, the statement
defer os.RemoveAll(path)
on line 116 gets executed only when our image has visible vulnerabilities.So almost every time this tool is used the temporary directory
/tmp/analyze-local-image-*
remains.The text was updated successfully, but these errors were encountered: