You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.11.0 installed using go install github.com/securego/gosec/v2/cmd/gosec@v2.11.0
The most recent commit on the master branch (89dfdc0) installed using go install github.com/securego/gosec/v2/cmd/gosec@89dfdc0c972655dfaa4eec7a115742a28e0bc216
Both produce the exact same failures.
Go version (output of 'go version')
❯ go version
go version go1.18 **darwin/arm64**
Operating system / Environment
macOS Monterey
Version 12.2.1 (21D62)
Expected behavior
To run without failures, return exit code 0 and print a summary.
@mniak Thanks for this issue but problem is in the golang.org/x/tools/go/packages package, more specifically packages.Load function which is used by gosec to load the Go packages.
The gosec's dependencies will be automatically updated when they will release a fix, therefore I'll close this issue for now.
Summary
When I import
github.com/samber/lo
and uses thelo.Map
method, it raises an error when I rungosec ./...
Steps to reproduce the behavior
Create the files below, then run
gosec ./...
:main.go
go.mod
go.sum
gosec version
I tested this behavior with two versions:
2.11.0
installed usinggo install github.com/securego/gosec/v2/cmd/gosec@v2.11.0
89dfdc0
) installed usinggo install github.com/securego/gosec/v2/cmd/gosec@89dfdc0c972655dfaa4eec7a115742a28e0bc216
Both produce the exact same failures.
Go version (output of 'go version')
Operating system / Environment
macOS Monterey
Version 12.2.1 (21D62)
Expected behavior
To run without failures, return exit code
0
and print a summary.Actual behavior
Crashes with exit code
1
and does not print a summary.The text was updated successfully, but these errors were encountered: