diff --git a/src/cmd/go/go_test.go b/src/cmd/go/go_test.go index b3cb4e44f246e9..f8d784545df137 100644 --- a/src/cmd/go/go_test.go +++ b/src/cmd/go/go_test.go @@ -984,6 +984,8 @@ func TestImportCommentConflict(t *testing.T) { // cmd/go: custom import path checking should not apply to github.com/xxx/yyy. func TestIssue10952(t *testing.T) { + testenv.MustHaveExternalNetwork(t) + if _, err := exec.LookPath("git"); err != nil { t.Skip("skipping because git binary not found") }