]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add 'work' package pattern
authorMichael Matloob <matloob@golang.org>
Thu, 16 Jan 2025 22:05:02 +0000 (17:05 -0500)
committerMichael Matloob <matloob@golang.org>
Thu, 6 Mar 2025 19:14:22 +0000 (11:14 -0800)
commit24d22352d308dc4f2283ed83f4794c5b4da661ee
treee3f4af688385b2e74fe542b96f6d2e0754d6c14a
parent9bd21607900d7072fd3d12ec756cb5eb87f8fe2a
cmd/go: add 'work' package pattern

The 'work' package pattern will resolve to the set of packages in the
work (formerly called main) modules. It's essentially 'all', but without
the dependencies. And the implementation is similar to that of 'all',
except that we don't expand to the dependencies.

Fixes #71294

Change-Id: I3d02beb74fa4e5c6de2290e24eedc51745d13080
Reviewed-on: https://go-review.googlesource.com/c/go/+/643235
Reviewed-by: Alan Donovan <adonovan@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/load/search.go
src/cmd/go/internal/modload/load.go
src/cmd/go/internal/search/search.go
src/cmd/go/testdata/script/build_perpkgflag.txt [new file with mode: 0644]
src/cmd/go/testdata/script/list_pattern_work.txt [new file with mode: 0644]