]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/dist: automatically bootstrap cmd subdirs
authorMatthew Dempsky <mdempsky@google.com>
Wed, 23 Dec 2020 03:32:57 +0000 (19:32 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 23 Dec 2020 04:20:02 +0000 (04:20 +0000)
commit6d03cde88a0599bd0a8d6cb1e5b08c5d0a06020a
treeac9a11a735cc6d76e5986ef833650545cc6f56c7
parentd1d1099c917de7387db9c9435e35ff14c4a63a91
[dev.regabi] cmd/dist: automatically bootstrap cmd subdirs

We want almost all cmd subdirectories anyway, and relative to the cost
of the rest of toolchain bootstrapping, copying/rewriting a few extra
source files is way cheaper than the engineering cost of forgetting to
maintain these lists as we split out new packages.

While here, also add cmd/internal/archive (and make it compile with Go
1.4) because it'll be needed in subsequent refactorings anyway; and
skip files starting with # (emacs temporary files) and test files
ending with _test.go.

Change-Id: Ic86e680a5fdfaecd617c36d5d04413293b2d6f52
Reviewed-on: https://go-review.googlesource.com/c/go/+/279832
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Russ Cox <rsc@golang.org>
Trust: Matthew Dempsky <mdempsky@google.com>
src/cmd/dist/buildtool.go
src/cmd/internal/archive/archive.go