Skip to content

Commit a35decf

Browse files
committed
cmd/go: fix TestIssue11457
The goal of the test is to provoke a custom import path check error, which will contain the current repo path, to see that it says ssh:// in it. But the fix to #16471 made the test no longer provoke that error. Provoke the error by checking out from rsc.io instead of github.com/rsc. Fixes #17701. Change-Id: I750ffda2ff59c2be8e111d26160997214a73fd9a Reviewed-on: https://go-review.googlesource.com/32641 Run-TryBot: Russ Cox <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]>
1 parent 5f9fb1c commit a35decf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/go/go_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ func TestIssue11457(t *testing.T) {
12161216
tg.parallel()
12171217
tg.tempDir("src")
12181218
tg.setenv("GOPATH", tg.path("."))
1219-
const importPath = "github.com/rsc/go-get-issue-11457"
1219+
const importPath = "rsc.io/go-get-issue-11457"
12201220
tg.run("get", "-d", "-u", importPath)
12211221
repoDir := tg.path("src/" + importPath)
12221222
tg.runGit(repoDir, "remote", "set-url", "origin", "[email protected]:rsc/go-get-issue-11457")

0 commit comments

Comments
 (0)