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
set GO111MODULE=
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Richard\AppData\Local\go-build
set GOENV=C:\Users\Richard\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=-ldflags=-w
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\Richard\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\Richard\go
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.20.14
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=NUL
set GOWORK=
set CGO_CFLAGS=-O2 -g
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-O2 -g
set CGO_FFLAGS=-O2 -g
set CGO_LDFLAGS=-O2 -g
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -Wl,--no-gc-sections -fmessage-length=0 -fdebug-prefix-map=C:\Use
rs\Richard\AppData\Local\Temp\go-build2449578639=/tmp/go-build -gno-record-gcc-switches
What did you do?
With the following go.mod and the main.go files I ran go get. [This creates the following go.sum file.
go.mod
module main
go 1.23
require golang.org/x/net v0.37.0
go list golang.org/x/crypto/...
go list golang.org/x/sys/...
go list golang.org/x/term/...
go list golang.org/x/text/...
Currently, only go list golang.org/x/net/... lists all the packages and doesn't error out with a missing go.sum entry message. This is because the go.sum has only entries with golang.org/x/net.
My guess is, that the go.sum file generated by go get contains too few entries. It doesn't contain the entries for the dependencies listed when running go list -m all.
The text was updated successfully, but these errors were encountered:
Go version
go version go1.20.14 windows/amd64
Output of
go env
in your module/workspace:What did you do?
With the following
go.mod
and themain.go
files I rango get
. [This creates the followinggo.sum
file.go.mod
main.go
go.sum
What did you see happen?
When I ran
go list ...
I get the following output.When I ran
go list golang.org/x/crypto/...
I get the following output.When I ran
go list golang.org/x/sys/...
I get the following output.When I ran
go list golang.org/x/term/...
I get the following output.When I ran
go list golang.org/x/text/...
I get the following output.When I ran
go list golang.org/x/net/...
I get the following output.When I ran
go list -m all
I get the following output.What did you expect to see?
go list ...
should just all the packages.Likewise should the following.
Currently, only
go list golang.org/x/net/...
lists all the packages and doesn't error out with a missinggo.sum
entry message. This is because thego.sum
has only entries withgolang.org/x/net
.My guess is, that the
go.sum
file generated bygo get
contains too few entries. It doesn't contain the entries for the dependencies listed when runninggo list -m all
.The text was updated successfully, but these errors were encountered: