]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: support GOROOT vendoring
authorJay Conrod <jayconrod@google.com>
Wed, 23 Oct 2019 21:14:09 +0000 (17:14 -0400)
committerJay Conrod <jayconrod@google.com>
Mon, 28 Oct 2019 21:45:30 +0000 (21:45 +0000)
commit60f34f739de41d8000661baac5dc1cebba80e892
treebcc206c53fdbbf46b5f337a7c91f69667d77acf5
parent3e457030d9a0b9ed23d9d5b346723c54ccae1a8e
cmd/dist: support GOROOT vendoring

In the second step of make.bash, cmd/dist builds cmd/go by invoking
the compiler, linker, and other tools directly on transitive
dependencies of cmd/go. Essentially, cmd/dist acts as a minimal
version of 'go install' when building go_toolchain.

Until now, cmd/go has had no transitive dependencies in vendor
directories. This changes in CL 202698, where several packages are
deleted and equivalent versions in golang.org/x/mod are used
instead. So this CL adds support to cmd/dist for vendor directories.

Updates #31761

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