Running make second time (after cleaning .direnv/ directory) results in the following error:
Error: err: exit status 1: stderr: go: cannot load module listed in go.work file: open ~/kubernetes-ingress-controller/.direnv/go/pkg/mod/golang.ngrok.com/ngrok@v1.0.1-0.20230502190252-9115810884ac/examples/go.mod: no such file or directory
How
Since we actually moved $GOPATH to ./direnv/go in the previous PR, now the controller gen sees many more things than we intend it to. Restrict it to only things we care about.
What
Running
make
second time (after cleaning.direnv/
directory) results in the following error: Error: err: exit status 1: stderr: go: cannot load module listed in go.work file: open ~/kubernetes-ingress-controller/.direnv/go/pkg/mod/golang.ngrok.com/ngrok@v1.0.1-0.20230502190252-9115810884ac/examples/go.mod: no such file or directoryHow
Since we actually moved
$GOPATH
to./direnv/go
in the previous PR, now the controller gen sees many more things than we intend it to. Restrict it to only things we care about.Breaking Changes
None