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
Version output is "empty" #323
Comments
I think this could be due to how gosec was installed for you. Did you install via a If you install via the official release I think this information is populated.
We should look at updating the docs around installation and releases. Also try to fix for the |
Yes, I installed it via |
This version information is available only for an official release, because it gets updated by the
|
We could investigate leveraging // the Sum for the main module is empty here unfortunately and the version shows as (devel)
if info, ok := debug.ReadBuildInfo(); ok {
// could still print out main module dependencies + version
for _, dep := range info.Deps {
fmt.Printf("%s: %s %s\n", dep.Sum, dep.Path, dep.Version)
}
} For the current SHA1 we most likely have to wait for the following to land: |
Summary
Steps to reproduce the behavior
Run the command:
gosec -version
gosec version
This is the issue!
Go version (output of 'go version')
go version go1.12.1 linux/amd64
Operating system / Environment
Expected behavior
Something like this:
Actual behavior
The text was updated successfully, but these errors were encountered: