-
Notifications
You must be signed in to change notification settings - Fork 347
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
Proper go.mod support #30
Comments
HI @harshavardhana, thanks for the interest in this project. I am not quite sure if I understand your issue correctly. The We had a rather long going-forth-and-back-discussion on this topic, mainly in #17 and #5 (including also the attempt to re-release starting from v1, but this did not work because of already cached old versions in the proxy) and decided that we do want to support go modules properly at some point, but not during the We have yet to fix a proper release schedule, I have started something here: https://github.com/golang-jwt/jwt/milestones, but it is far from complete. Most of the people involved here were a little busy with end of quarter / holiday stuff. So stay tuned. |
Yes I saw that after opening the issue, looks like there is no easy way out. Looking forward to v4 implementation. |
I will keep this open as a reminder, until we address it in v4. |
One could make the case this package doesn't really need module support. And the only real side-effect afaics is the "ugly"
Just curious, are there any tooling problems or issues users may be experiencing due to a lack of module support? FYI I'm not against adding go.mod file, would like to understand if there is a more pressing need to get to a /v4 ? |
I think the main concern is that at "some" point, Go will drop support for building in $GOPATH, effectively forcing the use of Go modules. It was originally announced, that $GOPATH will be deprecated in Go 1.17 according to https://blog.golang.org/go116-module-changes.
However, I cannot find any reference to that in the Go 1.17 beta, so I guess this is postponed for now. |
I propose we bite the bullet and adopt modules. Introducing this package as a Consumers, if they want proper module support, will still have to update their import paths .. but this is typically and there is tooling to help. In the future, if we wanted to introduce breaking changes those would be added as |
Such that moving the API to
github.com/golang-jwt/jwt/v3
for v3 releases. This helps downstream projects such as github.com/minio/minio - to pin to a correct release.The problem with
go.mod
's -v3.2.1+incompatible
would simply be unexpectedThe original issue that was neverhttps://github.com/dgrijalva/jwt-go/issues/294
The text was updated successfully, but these errors were encountered: