Skip to content

Commit 6c7039c

Browse files
camilamacedo86hasbro17
authored andcommitted
Improve error msg for setting GO111MODULE (#1776)
1 parent d3a37c1 commit 6c7039c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/operator-sdk/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func checkDepManager(dm projutil.DepManagerType) error {
145145
}
146146
if !goModOn {
147147
return fmt.Errorf(`dependency manager "modules" requires working directory to be in $GOPATH/src` +
148-
` and GO111MODULE=on, or outside of $GOPATH/src and GO111MODULE="on", "auto", or unset`)
148+
` and GO111MODULE=on, or outside of $GOPATH/src and GO111MODULE="on", "auto", or unset. More info: https://github.com/operator-framework/operator-sdk/blob/master/doc/user-guide.md#go-modules`)
149149
}
150150
case projutil.DepManagerDep:
151151
inGopathSrc, err := projutil.WdInGoPathSrc()

cmd/operator-sdk/new/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func doGoScaffold() error {
189189
return merr
190190
} else if !goModOn {
191191
return errors.New(`dependency manager "modules" requires working directory to be in $GOPATH/src` +
192-
` and GO111MODULE=on, or outside of $GOPATH/src and GO111MODULE="on", "auto", or unset`)
192+
` and GO111MODULE=on, or outside of $GOPATH/src and GO111MODULE="on", "auto", or unset. More info: https://github.com/operator-framework/operator-sdk/blob/master/doc/user-guide.md#go-modules`)
193193
}
194194
err = s.Execute(cfg, &scaffold.GoMod{}, &scaffold.Tools{})
195195
default:

0 commit comments

Comments
 (0)