Skip to content
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

cmd/go: go mod verify seems to be confused by go.work files #65825

Closed
pjweinb opened this issue Feb 20, 2024 · 1 comment
Closed

cmd/go: go mod verify seems to be confused by go.work files #65825

pjweinb opened this issue Feb 20, 2024 · 1 comment

Comments

@pjweinb
Copy link

pjweinb commented Feb 20, 2024

Go version

go version go1.22-20240109-RC01 cl/597041403 +dcbe772469 X:fieldtrack,boringcrypto linux/amd64

Output of go env in your module/workspace:

GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/usr/local/google/home/pjw/.cache/go-build'
GOENV='/usr/local/google/home/pjw/.config/go/env'
GOEXE=''
GOEXPERIMENT='loopvar'
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/usr/local/google/home/pjw/gostuff/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/usr/local/google/home/pjw/gostuff'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/lib/google-golang'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/lib/google-golang/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22-20240109-RC01 cl/597041403 +dcbe772469 X:fieldtrack,boringcrypto'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='clang'
CXX='clang++'
CGO_ENABLED='1'
GOMOD='/usr/local/google/home/pjw/tools/go.mod'
GOWORK='/usr/local/google/home/pjw/tools/go.work'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2060330091=/tmp/go-build -gno-record-gcc-switches'

What did you do?

Download the x/tools repository. Create a go.work file: go work init . ./gopls
Run go mod verify and get
golang.org/x/tools/gopls : missing ziphash: open hash: no such file or directory

What did you see happen?

Got an error message.

What did you expect to see?

If the go.work file is removed, then go mod verify says "all modules verified", which is what one would expect.

@bcmills bcmills changed the title go mod verify seems to be confused by go.work files cmd/go: go mod verify seems to be confused by go.work files Feb 20, 2024
@bcmills
Copy link
Contributor

bcmills commented Feb 20, 2024

Duplicate of #62663

@bcmills bcmills marked this as a duplicate of #62663 Feb 20, 2024
@bcmills bcmills closed this as not planned Won't fix, can't repro, duplicate, stale Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants