diff options
| author | Davis Goodin <dagood@microsoft.com> | 2023-08-29 12:39:58 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-08-30 19:41:54 +0000 |
| commit | a756cc0967c240820b491fa6412cfe6bd7b4bf8b (patch) | |
| tree | a39691c6813ae37c19da2cebb85b8128f91a77d4 /src | |
| parent | c9911b9a842f4399f59957da5622bc535dc2c688 (diff) | |
| download | go-a756cc0967c240820b491fa6412cfe6bd7b4bf8b.tar.xz | |
cmd/go: add missing str imports to fix addmod and savedir
The addmod.go and savedir.go testdata generation tools were missing the
"cmd/go/internal/str" import, causing them to fail to build. This change
adds the imports.
This makes progress on the work to use Join functions rather than path
manipulation using the path separator:
https://go-review.googlesource.com/c/go/+/463178
Change-Id: Ia70253afc0a351c646e672bd4178a8738e4e69cf
Reviewed-on: https://go-review.googlesource.com/c/go/+/524155
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/go/testdata/addmod.go | 1 | ||||
| -rw-r--r-- | src/cmd/go/testdata/savedir.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/go/testdata/addmod.go b/src/cmd/go/testdata/addmod.go index 0045d50a3b..7ef68b3edc 100644 --- a/src/cmd/go/testdata/addmod.go +++ b/src/cmd/go/testdata/addmod.go @@ -20,6 +20,7 @@ package main import ( "bytes" + "cmd/go/internal/str" "flag" "fmt" "internal/txtar" diff --git a/src/cmd/go/testdata/savedir.go b/src/cmd/go/testdata/savedir.go index 9a3ed506b1..bd42c3e485 100644 --- a/src/cmd/go/testdata/savedir.go +++ b/src/cmd/go/testdata/savedir.go @@ -15,6 +15,7 @@ package main import ( + "cmd/go/internal/str" "flag" "fmt" "internal/txtar" |
