go mod tidy removes dependencies I actually need at runtime
Go 1.22. I have a plugin-ish setup where a dependency is loaded via a blank import in a file generated at build time, not checked into the repo. After go mod tidy, that dependency disappears from go.mod and the build fails with 'no required module provides package'. Why does tidy remove it and how do I keep it? If you have hit this before, how did you handle it?
4 replies