Should I deprecate old version and add new version for depguard? #3727
Replies: 1 comment 4 replies
-
#1987 I did find this on deprecation, but still unclear as a maintainer of a linter, what I should do. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For backwards compatibility this makes sense.
DepguardV2 is now using the analysis package. v1 was not since it was not available on initial write. There were other other assumptions being made in v1 while golangci-lint was in v1.4, that are no longer the case and was causing issues. So I decided to start a v2 and introduce breaking changes (mainly in how it is configured).
Another note, is it worth it, I noticed gomodguard is a thing which is more efficient as it only reads mod files, where depguard reads every go file being linted (albeit only the imports). I believe they are two different cases (one is for the whole module and depguard is more concerned about package level requirements).
Is there any documentation on how to mark a linter as deprcated if I do go down this route?
Beta Was this translation helpful? Give feedback.
All reactions