]> Cypherpunks repositories - gostls13.git/commit
dist: generate stub go.mod in workdir
authorTamir Duberstein <tamird@google.com>
Thu, 25 Feb 2021 21:44:46 +0000 (16:44 -0500)
committerJay Conrod <jayconrod@google.com>
Tue, 2 Mar 2021 16:12:11 +0000 (16:12 +0000)
commitc6374f516206c02b905d0d76ee1a66dab6fcd212
treee8ac98fd0485e6e7372a705fabc818cf3b14481f
parent97b32a6724ebc3a6029e06b6c4b3acb9c980b15a
dist: generate stub go.mod in workdir

...and run commands from there.

This removes the requirement that bootstrap must not run inside a module
by ensuring that enclosing modules do not interfere with bootstrap.

Fixes #44209.

Change-Id: I700a81829226770b8160c8ff04127b855b6e26bf
Reviewed-on: https://go-review.googlesource.com/c/go/+/296610
Trust: Jay Conrod <jayconrod@google.com>
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/dist/build.go