-
Notifications
You must be signed in to change notification settings - Fork 405
Closed
Description
Hey folks,
We use golang-jwt/jwt
as a dependency in firebase.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 on github.com/golang-jwt/jwt/v4
with the following error:
github.com/MicahParks/keyfunc (download)
github.com/golang-jwt/jwt (download)
cannot find package "github.com/golang-jwt/jwt/v4" in any of:
/opt/hostedtoolcache/go/1.17.13/x64/src/github.com/golang-jwt/jwt/v4 (from $GOROOT)
/home/runner/work/firebase-admin-go/firebase-admin-go/go/src/github.com/golang-jwt/jwt/v4 (from $GOPATH)
I am guessing this is probably because get github.com/golang-jwt/jwt
downloads v3
but the code depends on v4
, 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:
export GO111MODULE=off
go get -u github.com/golang-jwt/jwt/v4
Error:
cannot find package "github.com/golang-jwt/jwt/v4" in any of:
/usr/local/go/src/github.com/golang-jwt/jwt/v4 (from $GOROOT)
/Users/foo/go/src/github.com/golang-jwt/jwt/v4 (from $GOPATH)
Is this WAI? If not, any thoughts on how we could fix the CIs to use golang-jwt/jwt/v4
in GOPATH builds? Thanks!
Metadata
Metadata
Assignees
Labels
No labels