-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update github.com/golang-jwt/jwt to github.com/golang-jwt/jwt/v4 #2441
Comments
This is because core has deprecated JWT middleware with that dependency. Go module logic does not use/download that version if you are not using it. |
I'm indirectly using both, when I use the new |
no, you are not using it - unless you invoke code that uses it. It is there because This has to do with https://go.dev/ref/mod#graph-pruning
|
I am no expert how |
thanks for the clarification |
will close on tuesday. Maybe someone will add a comment. |
As the title already states, update the dependency.
I find it pretty weird.
When using
github.com/labstack/echo-jwt
you get thegithub.com/golang-jwt/jwt/v4
dependency (https://github.com/labstack/echo-jwt/blob/main/go.mod)which in turn imports
github.com/labstack/echo/middleware
importing thegithub.com/golang-jwt/jwt v3.x.x+incompatible
.You are basically getting both major versions as dependencies which is kind of dirty :).
The text was updated successfully, but these errors were encountered: