]> Cypherpunks repositories - gostls13.git/commit
cmd/go: prevent git from fetching during local only mode
authorSam Thanawalla <samthanawalla@google.com>
Mon, 9 Sep 2024 17:12:02 +0000 (17:12 +0000)
committerSam Thanawalla <samthanawalla@google.com>
Tue, 24 Sep 2024 17:10:31 +0000 (17:10 +0000)
commit43cf73186b9889583f125188938c4d43d25c9ad3
tree3fa3a579336af177df44c85db44f6067c742e228
parent83fbd0a37bb8c67400e29437db67b6098cf3d5ff
cmd/go: prevent git from fetching during local only mode

Since we added a local context to git lookups, we need to be more
careful about fetching from remote.
We should not fetch when we are stamping a binary because that could
slow down builds.

For #50603
Cq-Include-Trybots: luci.golang.try:gotip-linux-amd64-longtest,gotip-windows-amd64-longtest
Change-Id: I81a719b7609e8d30b32ffb3c12a05074c5fd0c22
Reviewed-on: https://go-review.googlesource.com/c/go/+/611916
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
src/cmd/go/internal/modfetch/codehost/git.go