aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec
diff options
context:
space:
mode:
authorMichael Matloob <matloob@golang.org>2025-05-15 15:30:57 -0400
committerMichael Matloob <matloob@google.com>2025-05-16 15:32:15 -0700
commit6425749695130f2032ac9cfdf5407b6a322534db (patch)
tree6a5b8532c58cf93baf9762b4f772d3fc41c1a481 /src/os/exec
parent8798f9e7a4929bafb570da29d342104c8cb32f9b (diff)
downloadgo-6425749695130f2032ac9cfdf5407b6a322534db.tar.xz
cmd/distpack: remove more tools from packaged distribution
The "doc", "fix", and "covdata" tools invoked by the go command are not needed for builds. Instead of invoking them directly using the installed binary in the tool directory, use "go tool" to run them, building them if needed. We can then stop distributing those tools in the distribution. covdata is used in tests and can form part of a cached test result, but test results don't have the same requirements as build outputs to be completely determined by the action id. We already don't include a toolid for the covdata tool in the action id for a test run. The more principled way to do things would be to load the covdata package, create the actions to build it, and then depend on the output of that action from the the test action and use that as the covdata tool. For now, it's probably not worth the effort, but, in the future, if we wanted to build a tool like cgo as needed, it would be best to build it in the same action graph. That would introduce a whole bunch of complexity because we'd need to build the tool in the host configuration, and all the configuration parameters are global. For #71867 Change-Id: Id9bbbb5c169296f66c072949f9da552424ecfa2f Reviewed-on: https://go-review.googlesource.com/c/go/+/673119 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Pratt <mpratt@google.com> Reviewed-by: Michael Matloob <matloob@google.com>
Diffstat (limited to 'src/os/exec')
0 files changed, 0 insertions, 0 deletions