-
Notifications
You must be signed in to change notification settings - Fork 67
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 run fails because of dependencies uuid and jwt-go #6
Comments
get v2.7 of jwt-go project to resolve the issues in slumber-sessions. |
I had same issue with @sillysachin, but currently jwt-go project https://github.com/dgrijalva/jwt-go has released version 3.0.0, i try to install it as usual but after when to get your package that I keep failed, how to get version 2.7.0 with go get jwt-go |
https://github.com/dgrijalva/jwt-go/releases/tag/v2.7.0 this will download an archive unzip this in your src/github/drjialva/jwt-go folder to replace all the content. The one that you have now is the latest version v3 which is not compatible with slumber |
same for the https://github.com/twinj/uuid/releases/tag/0.10.0 |
I try to follow your suggest, these currently the error, package UUID i already install at github.com/pborman/uuid
what I am missing ? |
Use the uuid package from the link |
It has solved when those package (uuid and jwt-go) download manually not using |
Yes. This project has not been updated to use the latest version of the dependent components. I too just like you are trying to figure out the working of this project. |
Hello guys, I was able to solve the jwt-go issue. I've opened a pull request with the working code in the slumber-sessions repository. Please take a look, sogko/slumber-sessions#2 |
github.com/sogko/slumber-sessions
sogko/slumber-sessions/token_authority.go:47: cannot use map[string]interface {} literal (type map[string]interface {}) as type jwt.Claims in assignment:
map[string]interface {} does not implement jwt.Claims (missing Valid method)
sogko/slumber-sessions/token_authority.go:67: invalid operation: token.Token.Claims["userId"](type jwt.Claims does not support indexing)
sogko/slumber-sessions/token_authority.go:68: invalid operation: token.Token.Claims["userId"](type jwt.Claims does not support indexing)
sogko/slumber-sessions/token_authority.go:70: invalid operation: token.Token.Claims["jti"](type jwt.Claims does not support indexing)
sogko/slumber-sessions/token_authority.go:71: invalid operation: token.Token.Claims["jti"](type jwt.Claims does not support indexing)
sogko/slumber-sessions/token_authority.go:73: invalid operation: token.Token.Claims["iat"](type jwt.Claims does not support indexing)
sogko/slumber-sessions/token_authority.go:74: invalid operation: token.Token.Claims["iat"](type jwt.Claims does not support indexing)
sogko/slumber-sessions/token_authority.go:76: invalid operation: token.Token.Claims["exp"](type jwt.Claims does not support indexing)
sogko/slumber-sessions/token_authority.go:77: invalid operation: token.Token.Claims["exp"](type jwt.Claims does not support indexing)
github.com/sogko/slumber-users
sogko/slumber-users/users.go:90: undefined: uuid.Clean
The text was updated successfully, but these errors were encountered: