ngrok / kubernetes-ingress-controller

The official ngrok Ingress Controller for Kubernetes
https://ngrok.com
MIT License
184 stars 20 forks source link

restrict generate to only our paths (not the whole `.direnv/go`) #249

Closed nikolay-ngrok closed 1 year ago

nikolay-ngrok commented 1 year ago

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 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.

Breaking Changes

None