-
Notifications
You must be signed in to change notification settings - Fork 361
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
go get github.com/golang-jwt/jwt/v4
with GO111MODULE=off
#286
Comments
Hmm I am not an export on non-module builds so I am also not quite sure what is happening there. Are you depending on Please be aware that we are bumping the Go version to 1.18 in v5, so at some point probably non-module build support will fade away. |
Thanks @oxisto. We depend on Thanks for the heads up on v5. Maybe it is time for us to safely drop non-module builds. |
The only thing I can think of that might have changed in the past month is we bumped the module to The minimum go version also got bumped from go1.16 to go1.18. There must be something throwing off go1.17.x even with modules disabled, but I can't immediately see why changes in this repository would affect something that was previously working. I could be wrong, but it feels a bit odd consuming a SIV-style import but relying on old GOPATH semantics? |
Yeah good point! I am not sure either. If we go back to |
Can we consider this issue as closed? I fear that this is actually something in the Go runtime and not specific to our library? |
Yes! We have decided to require module mode to build the current version of the library and drop non-module support. We can close this issue now. Thank you for the help! |
Hey folks,
We use
golang-jwt/jwt
as a dependency infirebase.google.com/go
and we have set up CIs to test both module and GOPATH builds. Lately, we have noticed that the GOPATH builds are failing ongithub.com/golang-jwt/jwt/v4
with the following error:I am guessing this is probably because
get github.com/golang-jwt/jwt
downloadsv3
but the code depends onv4
, but I thought I should reach out because the GOPATH CI started failing recently without any changes from our end.You can try the following to reproduce the issue:
Error:
Is this WAI? If not, any thoughts on how we could fix the CIs to use
golang-jwt/jwt/v4
in GOPATH builds? Thanks!The text was updated successfully, but these errors were encountered: