]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: simplify exec.Cmd helpers for Go 1.19
authorAustin Clements <austin@google.com>
Mon, 29 Aug 2022 21:30:12 +0000 (17:30 -0400)
committerAustin Clements <austin@google.com>
Fri, 16 Sep 2022 15:08:37 +0000 (15:08 +0000)
commit5abf200d6528a67032d67d3f50ffd7ce8b536dfa
tree384c9ca30e5d0175792177eec679248fe2b2a86e
parentd9f90df2b488b2fb7ca8c24d99f82878befb68f8
cmd/dist: simplify exec.Cmd helpers for Go 1.19

When running on Go 1.19, we can further simplify some of the exec.Cmd
helpers due to API improvements. There's not much point in doing this
while the bootstrap is still 1.17, but this will queue up this
simplification in an obvious way for when we next upgrade the
bootstrap toolchain (#54265).

Updates #44505.

Change-Id: I2ebc3d5c584375ec862a1d48138ab134bd9b2366
Reviewed-on: https://go-review.googlesource.com/c/go/+/427958
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/dist/exec_118.go [moved from src/cmd/dist/exec.go with 97% similarity]
src/cmd/dist/exec_119.go [new file with mode: 0644]