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
$ go version
go version go1.19.3 darwin/amd64
$ tree
.
├── go.mod
└── main.go
0 directories, 2 files
$ cat go.mod
module w
go 1.18
$ cat main.go
package main
import "math/big"
func main() { }
What I expect to see
package load error caused by build error (unused import)
What I saw instead
"Your module is missing a go.sum file. Try running go mod tidy."
$ govulncheck .
...
Scanning for dependencies with known vulnerabilities...
govulncheck: no go.sum file
Your module is missing a go.sum file. Try running go mod tidy.
...
govulncheck version
$ go version -m $(which govulncheck)
<path_to>/govulncheck: go1.19.3
path golang.org/x/vuln/cmd/govulncheck
mod golang.org/x/vuln v0.0.0-20221122171214-05fb7250142c h1:Q/cUnXhEEKm8vd19JItKXGfjQl2Tts0p7mR0uXW7LJE=
dep golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e h1:+WEEuIdZHnUeJJmEUjyYC2gfUMj69yZXw17EnHg/otA=
dep golang.org/x/mod v0.6.0 h1:b9gGHsz9/HhJ3HF5DHQytPpuwocVTChQJK3AvoLRD5I=
dep golang.org/x/sys v0.1.0 h1:kunALQeHf1/185U1i0GOB/fy1IPRDDpuoOOqRReG57U=
dep golang.org/x/tools v0.2.1-0.20221108172846-9474ca31d0df h1:3MIQGcHdkHmYqPNhU+qLUjA5oW4wwWzrSa8zjqZ3gHk=
build -compiler=gc
build CGO_ENABLED=1
build CGO_CFLAGS=
build CGO_CPPFLAGS=
build CGO_CXXFLAGS=
build CGO_LDFLAGS=
build GOARCH=amd64
build GOOS=darwin
build GOAMD64=v1
This error is not necessary as the original error message "missing
go.sum entry ..." is clear enough. Otherwise, the current classification
of this error was wrong and would mask other important errors.
Also cleans up other currently unused errors.
Fixesgolang/go#57013
Change-Id: If67ea4423b81bf35103c67d10c7e1eb291470fb3
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/456135
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
sayjun0505
added a commit
to sayjun0505/Golangvuln
that referenced
this issue
Apr 8, 2023
This error is not necessary as the original error message "missing
go.sum entry ..." is clear enough. Otherwise, the current classification
of this error was wrong and would mask other important errors.
Also cleans up other currently unused errors.
Fixesgolang/go#57013
Change-Id: If67ea4423b81bf35103c67d10c7e1eb291470fb3
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/456135
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
This error is not necessary as the original error message "missing
go.sum entry ..." is clear enough. Otherwise, the current classification
of this error was wrong and would mask other important errors.
Also cleans up other currently unused errors.
Fixesgolang/go#57013
Change-Id: If67ea4423b81bf35103c67d10c7e1eb291470fb3
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/456135
Run-TryBot: Zvonimir Pavlinovic <zpavlinovic@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Julie Qiu <julieqiu@google.com>
What I expect to see
package load error caused by build error (unused import)
What I saw instead
"Your module is missing a go.sum file. Try running go mod tidy."
govulncheck version
cc @zpavlinovic @golang/vulndb
The text was updated successfully, but these errors were encountered: