]> Cypherpunks repositories - gostls13.git/commit
cmd/go: allow nested VCS repositories when preparing build stamp
authorJay Conrod <jayconrod@google.com>
Fri, 15 Oct 2021 18:57:58 +0000 (11:57 -0700)
committerJay Conrod <jayconrod@google.com>
Fri, 15 Oct 2021 20:29:36 +0000 (20:29 +0000)
commita17b2e865551ebdeccd6aafcdc23c1b63932b258
tree11559e5a91830e794dae9798d5334cef1b087e34
parent22951fbc89a1bc3c5cc38f4e71b4a682f5149361
cmd/go: allow nested VCS repositories when preparing build stamp

The go command no longer reports an error when invoked in a repository
nested inside another. This check is still used by 'go get' in GOPATH
mode when locating a repository, but it's not needed when preparing
the build stamp.

Fixes #49004

Change-Id: I4ed4dcc04174d2d42da8651d47e52ab1d7d66e35
Reviewed-on: https://go-review.googlesource.com/c/go/+/356309
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/go/internal/get/get.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/vcs/vcs.go
src/cmd/go/internal/vcs/vcs_test.go
src/cmd/go/testdata/script/version_buildvcs_nested.txt