operator-sdk: Does not work with Modules
Feature Request
What did you do?
I tried to run operator-sdk new foo --skip-git-init
both in an empty directory as well as a directory containing both go.mod
and go.sum
.
What did you expect to see? I expected it to generate without any fuss.
What did you see instead? Under which circumstances? Output is:
INFO[0000] Creating new Go operator 'foo'.
FATA[0000] Project not in $GOPATH
Environment
-
operator-sdk version:
operator-sdk version v0.4.0
-
Are you writing your operator in ansible, helm, or go? go
Additional context
printenv | grep GOPATH
is empty
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 6
- Comments: 20 (8 by maintainers)
This still doesn’t work for me, running MacOS 10.11.6 with Go 1.12.5 and
GO111MODULE=on
set.operator-sdk version
output:operator-sdk new some-operator --type=go --skip-git-init
output (from outside$GOPATH
):Ah sorry, didn’t see that. Changed now.
Fair enough. You are aware that
GOPATH
will get deprecated, right?See 1
Sorry, I do not follow. What do you want to be adjusted? To me the issue is sufficient neutral.