Go version
go version go1.26.2 linux/amd64
Output of go env in your module/workspace:
AR='ar'
CC='gcc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='g++'
GCCGO='gccgo'
GO111MODULE=''
GOAMD64='v1'
GOARCH='amd64'
GOAUTH='netrc'
GOBIN=''
GOCACHE='/home/xxx/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/home/xxx/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3167022197=/tmp/go-build -gno-record-gcc-switches'
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD='/dev/null'
GOMODCACHE='/home/xxx/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/xxx/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/xxx/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.26.2'
GOWORK=''
PKG_CONFIG='pkg-config'
What did you do?
I have a project contained in a mercurial repository. When running go build it executes hg pull -f which triggers a prompt requesting credentials. This is a bit annoying. Also I do not want a go build to have such side effects. This is totally unexpected.
What did you see happen?
xxx@xxx:~/Projects/gemma$ go build -x -o ./cmd/gemma/gemma ./cmd/gemma
WORK=/tmp/go-build3922253331
cd /home/xxx/Projects/gemma
hg log -r. -T {node}:{date|hgdate}
cd /home/xxx/Projects/gemma
hg status -S
cd /home/xxx/Projects/gemma; hg pull -f
Enter passphrase for key '/home/xxx/.ssh/id_rsa':
What did you expect to see?
This behavior was introduced in go 1.26.0. We verified that this does not happen in go 1.25.x. This seems to be related to 426ef30 (#75119).
I do not expect a go build to run hg pull -f in my project.
Go version
go version go1.26.2 linux/amd64
Output of
go envin your module/workspace:What did you do?
I have a project contained in a mercurial repository. When running
go buildit executeshg pull -fwhich triggers a prompt requesting credentials. This is a bit annoying. Also I do not want a go build to have such side effects. This is totally unexpected.What did you see happen?
What did you expect to see?
This behavior was introduced in go 1.26.0. We verified that this does not happen in go 1.25.x. This seems to be related to 426ef30 (#75119).
I do not expect a go build to run
hg pull -fin my project.