how to get go mod tidy not try to download local packages

Viewed 91

I have a go monorepo with a few packages that at one point had an import path like github.com/user/ticketing/tickets/models/connection, but is a private repo and I'd rather not have to depend on the remote repo anyway for deployment on kubernetes/skaffold. I was wondering how when running go mod tidy, I can prevent tidy from trying to download the local packages but instead have everything point to the local packages instead through masking/shadowing. I'm open to a bazel-based solution as well, but I feel like tidy would not be impacted by anything around bazel. Thank you.

1 Answers
Related