]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: add missing str imports to fix addmod and savedir
authorDavis Goodin <dagood@microsoft.com>
Tue, 29 Aug 2023 17:39:58 +0000 (12:39 -0500)
committerGopher Robot <gobot@golang.org>
Wed, 30 Aug 2023 19:41:54 +0000 (19:41 +0000)
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>

src/cmd/go/testdata/addmod.go
src/cmd/go/testdata/savedir.go

index 0045d50a3b3b949689cd21b173124f1920ec5e6a..7ef68b3edcc9d5537dc3f6be97878d2dcf498398 100644 (file)
@@ -20,6 +20,7 @@ package main
 
 import (
        "bytes"
+       "cmd/go/internal/str"
        "flag"
        "fmt"
        "internal/txtar"
index 9a3ed506b1b8e579c216acedc4893be429049d0e..bd42c3e485c43f3f007b65b984a5bbfd8768a772 100644 (file)
@@ -15,6 +15,7 @@
 package main
 
 import (
+       "cmd/go/internal/str"
        "flag"
        "fmt"
        "internal/txtar"