return
}
+ // Warn that code.google.com is shutting down. We
+ // issue the warning here because this is where we
+ // have the import stack.
+ if strings.HasPrefix(p.ImportPath, "code.google.com") {
+ fmt.Fprintf(os.Stderr, "warning: code.google.com is shutting down; import path %v will stop working\n", p.ImportPath)
+ if len(*stk) > 1 {
+ fmt.Fprintf(os.Stderr, "warning: package %v\n", strings.Join(*stk, "\n\timports "))
+ }
+ }
+
args := []string{arg}
// If the argument has a wildcard in it, re-evaluate the wildcard.
// We delay this until after reloadPackage so that the old entry
tg.runFail("get", "-d", repo)
tg.run("get", "-d", "-insecure", repo)
}
+
+func TestIssue10193(t *testing.T) {
+ testenv.MustHaveExternalNetwork(t)
+
+ tg := testgo(t)
+ defer tg.cleanup()
+ tg.parallel()
+ tg.tempDir("src")
+ tg.setenv("GOPATH", tg.path("."))
+ tg.runFail("get", "code.google.com/p/rsc-svn")
+ tg.grepStderr("is shutting down", "missed warning about code.google.com")
+}