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

x/vgo: fails trying to open ziphash from cache dir #26127

Closed
artyom opened this issue Jun 29, 2018 · 4 comments
Closed

x/vgo: fails trying to open ziphash from cache dir #26127

artyom opened this issue Jun 29, 2018 · 4 comments
Milestone

Comments

@artyom
Copy link
Member

artyom commented Jun 29, 2018

What version of Go are you using (go version)?

go version go1.10.3 darwin/amd64 vgo:2018-02-20.1

vgo at revision bbcfaa0c1b10a3e580b80b1d575ce55054b80a23

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

vgo env output:

GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/artyom/Library/Caches/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/artyom/go"
GOPROXY=""
GORACE=""
GOROOT="/Users/artyom/Library/go"
GOTMPDIR=""
GOTOOLDIR="/Users/artyom/Library/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/lb/3rk8rqs53czgb4v35w_342xc0000gn/T/go-build057133119=/tmp/go-build -gno-record-gcc-switches -fno-common"
VGOMODROOT="/Users/artyom/go/src/github.com/artyom/vgo-test2"

What did you do?

Trying to build any package with dependencies, i.e. https://github.com/artyom/vgo-test2

What did you expect to see?

Build succeeds.

What did you see instead?

vgo fails trying to open non-existent .ziphash file from cache directory:

vgo-test2 (master) ¶ vgo build
vgo: verifying golang.org/x/sync@v0.0.0-20180314180146-1d60e4601c6f: open /Users/artyom/go/src/mod/cache/download/golang.org/x/sync/@v/v0.0.0-20180314180146-1d60e4601c6f.ziphash: no such file or directory

1 vgo-test2 (master) ¶ ls ~/go/src/mod/cache/download/golang.org/x/sync/@v/v0.0.0-20180314180146-1d60e4601c6f*
/Users/artyom/go/src/mod/cache/download/golang.org/x/sync/@v/v0.0.0-20180314180146-1d60e4601c6f.info
/Users/artyom/go/src/mod/cache/download/golang.org/x/sync/@v/v0.0.0-20180314180146-1d60e4601c6f.mod
@gopherbot gopherbot added this to the vgo milestone Jun 29, 2018
@artyom
Copy link
Member Author

artyom commented Jun 29, 2018

Removal of ~/go/src/mod directory helps.

@warthog618
Copy link

warthog618 commented Jun 29, 2018

I'm seeing this as well. Rolling vgo back one commit to golang/vgo@1d3e614 fixes it for me, so it looks like the golang/vgo@bbcfaa0 commit is the culprit.

@folago
Copy link

folago commented Jun 29, 2018

I hit it as well, as @artyom said removal of ~/go/src/mod fixed it for me.

@gopherbot
Copy link

Change https://golang.org/cl/121659 mentions this issue: cmd/go/internal/modfetch: ignore missing ziphash files in build

@golang golang locked and limited conversation to collaborators Jun 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants