We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03875bd commit f1c400aCopy full SHA for f1c400a
src/cmd/go/testdata/script/mod_outside.txt
@@ -69,10 +69,9 @@ go clean -n
69
! stdout .
70
! stderr .
71
72
-# 'go mod graph' should not display anything, since there are no active modules.
73
-go mod graph
74
-! stdout .
75
-! stderr .
+# 'go mod graph' should fail, since there's no module graph.
+! go mod graph
+stderr 'cannot find main module'
76
77
# 'go mod why' should fail, since there is no main module to depend on anything.
78
! go mod why -m example.com/version
0 commit comments