-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: prebuilt net/http not used #26993
Comments
Possibly related to #26988 |
It's because of the
to the hash key. When the build of the module is done later, the build ID computation writes
That is, the This is presumably happening because
|
This seems related to #23970 and https://golang.org/cl/125836. Perhaps the go/build package needs to explicitly remove "vendor/" from the |
Duplicate of #26993. I think the rebuild is fine for Go 1.11 and possibly just in general. |
See also this comment #26988 (comment) for a brief explanation on why this is happening. |
What version of Go are you using (
go version
)?go version devel +c882f4b6b1 Tue Aug 14 20:40:15 2018 +0000 linux/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?GOARCH="amd64"
GOBIN=""
GOCACHE="/tmp/gocache"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/usr/local/google/home/dneil/go"
GOPROXY=""
GORACE=""
GOROOT="/tmp/go"
GOTMPDIR=""
GOTOOLDIR="/tmp/go/pkg/tool/linux_amd64"
GCCGO="/usr/bin/gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/usr/local/google/home/dneil/foo/go.mod"
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 -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build560741844=/tmp/go-build -gno-record-gcc-switches"
What did you do?
What did you expect to see?
With a cold cache, this should just build the current package.
What did you see instead?
The
net/http
package and a number of its dependencies are rebuilt.This doesn't happen with other packages; e.g.,
fmt
.The text was updated successfully, but these errors were encountered: