Skip to content

Commit a756cc0

Browse files
dagoodgopherbot
authored andcommitted
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 <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Reviewed-by: Bryan Mills <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Bryan Mills <[email protected]>
1 parent c9911b9 commit a756cc0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/cmd/go/testdata/addmod.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ package main
2020

2121
import (
2222
"bytes"
23+
"cmd/go/internal/str"
2324
"flag"
2425
"fmt"
2526
"internal/txtar"

src/cmd/go/testdata/savedir.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
package main
1616

1717
import (
18+
"cmd/go/internal/str"
1819
"flag"
1920
"fmt"
2021
"internal/txtar"

0 commit comments

Comments
 (0)