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/build: TryBots for golang.org/dl subrepo place code at wrong location #30852

Open
bcmills opened this Issue Mar 14, 2019 · 1 comment

Comments

Projects
None yet
4 participants
@bcmills
Copy link
Member

bcmills commented Mar 14, 2019

The TryBot run for https://golang.org/cl/167703 failed, and the failure appears to be spurious.

Looking at the error message, it appears that the builder is running at $GOPATH/src/golang.org/x/dl, but the actual repo path does not have the /x component. That causes the build to fail in GOPATH mode, since internal imports cannot be resolved.

CC @dmitshur @bradfitz

linux-amd64 at aa193c0b9623acd7397c0799ffc9efe5845216b2 building dl at 1fd72ee045448e802db0932c08bf55095b3992f8

:: Running /workdir/go/bin/go with args ["/workdir/go/bin/go" "test" "-short" "golang.org/x/dl/..."] and env ["PATH=/workdir/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" "HOSTNAME=buildlet-linux-jessie-rnef69983" "DEBIAN_FRONTEND=noninteractive" "HOME=/root" "USER=root" "GO_STAGE0_NET_DELAY=0s" "GO_STAGE0_DL_DELAY=100ms" "WORKDIR=/workdir" "GOROOT_BOOTSTRAP=/workdir/go1.4" "GO_BUILDER_NAME=linux-amd64" "GOROOT_BOOTSTRAP=/go1.4" "GO_DISABLE_OUTBOUND_NETWORK=1" "GOROOT=/workdir/go" "GOPATH=/workdir/gopath" "GOPROXY=http://10.240.0.49:30156" "GO111MODULE=auto" "TMPDIR=/workdir/tmp" "GOCACHE=/workdir/gocache"] in dir /workdir/gopath/src/golang.org/x/dl

go1.10/main.go:20:8: cannot find package "golang.org/dl/internal/version" in any of:
	/workdir/go/src/golang.org/dl/internal/version (from $GOROOT)
	/workdir/gopath/src/golang.org/dl/internal/version (from $GOPATH)


Error: tests failed: exit status 1

@gopherbot gopherbot added this to the Unreleased milestone Mar 14, 2019

@gopherbot gopherbot added the Builders label Mar 14, 2019

@bradfitz

This comment has been minimized.

Copy link
Member

bradfitz commented Mar 14, 2019

Yeah, "dl" is a special case. So far all the "subrepos" (legacy hg term) became golang.org/x/$foo, but not dl.

@dmitshur dmitshur added the Testing label Mar 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.