From: Davis Goodin Date: Tue, 29 Aug 2023 17:39:58 +0000 (-0500) Subject: cmd/go: add missing str imports to fix addmod and savedir X-Git-Tag: go1.22rc1~1033 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a756cc0967c240820b491fa6412cfe6bd7b4bf8b;p=gostls13.git 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 Reviewed-by: Dmitri Shuralyov Reviewed-by: Bryan Mills TryBot-Result: Gopher Robot Auto-Submit: Bryan Mills --- 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"