]> Cypherpunks repositories - gostls13.git/commit
[dev.cmdgo] don't give command-line-arguments a module
authorMichael Matloob <matloob@golang.org>
Mon, 2 Aug 2021 19:54:51 +0000 (15:54 -0400)
committerMichael Matloob <matloob@golang.org>
Thu, 12 Aug 2021 16:19:55 +0000 (16:19 +0000)
commitd397fc1169aa2491bc807812105371819366deb8
treead34cb6482847a9e8b9ca281c3db51c887d70a3a
parentaaf914d0e69198a96683c106abb5a931c4956f88
[dev.cmdgo] don't give command-line-arguments a module

Don't associate command-line-arguments with a module. Even though the
sources in the command-line-arguments package may exist within the
module's packages, the command-line-arguments package is distinct from
the package in the module. It has its own identity, and further, even if
all the same sources are listed, build tag filtering is not applied for
command-line-arguments.

For #45713

Change-Id: I555752021d58ea25e65699b4959f787ea5fa2cda
Reviewed-on: https://go-review.googlesource.com/c/go/+/339170
Trust: Michael Matloob <matloob@golang.org>
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Michael Matloob <matloob@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modload/build.go
src/cmd/go/testdata/script/mod_list_command_line_arguments.txt [new file with mode: 0644]
src/cmd/go/testdata/script/mod_outside.txt
src/cmd/go/testdata/script/version.txt
src/cmd/go/testdata/script/work.txt