In my small project, I have a script that ensures proper code quality by running static code checks, for example, I use errcheck to verify that I handle every error in my code.
In dep
, there was a special section for that kind of dependencies, called required
Use this for: linters, generators, and other development tools that:
- Are needed by your project
- Aren't imported by your project, directly or transitively
For go modules, I can fetch given version of errcheck
by executing:
go get github.com/kisielk/[email protected]
But then, it will be removed from go.mod
when I execute:
go mod tidy
. Is it possible to avoid such a situation?