tg.run("get", "-d", "-u", "github.com/rsc/go-get-issue-9224-cmd")
}
+// Issue #20512.
+func TestGoGetRace(t *testing.T) {
+ testenv.MustHaveExternalNetwork(t)
+ if !canRace {
+ t.Skip("skipping because race detector not supported")
+ }
+
+ tg := testgo(t)
+ defer tg.cleanup()
+ tg.makeTempdir()
+ tg.setenv("GOPATH", tg.path("."))
+ tg.run("get", "-race", "github.com/rsc/go-get-issue-9224-cmd")
+}
+
func TestGoGetDomainRoot(t *testing.T) {
// golang.org/issue/9357.
// go get foo.io (not foo.io/subdir) was not working consistently.
}
func runInstall(cmd *base.Command, args []string) {
+ InstrumentInit()
+ BuildModeInit()
InstallPackages(args, false)
}
base.Fatalf("cannot install, GOBIN must be an absolute path")
}
- InstrumentInit()
- BuildModeInit()
pkgs := pkgsFilter(load.PackagesForBuild(args))
for _, p := range pkgs {