Skip to content
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 go.mod dependencies #37

Merged
merged 3 commits into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.17", "1.18", "1.19", "1.20"]
go: ["1.21", "1.22"]
steps:
- name: Set up Go ${{ matrix.go }}
uses: actions/setup-go@v4
Expand Down
2 changes: 1 addition & 1 deletion cmd/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strconv"
"time"

"github.com/dgrijalva/jwt-go"
"github.com/golang-jwt/jwt/v5"
jwtInterface "github.com/hahwul/jwt-hack/pkg/jwt"

//. "github.com/logrusorgru/aurora"
Expand Down
2 changes: 1 addition & 1 deletion cmd/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package cmd
import (
"os"

"github.com/dgrijalva/jwt-go"
"github.com/golang-jwt/jwt/v5"
jwtInterface "github.com/hahwul/jwt-hack/pkg/jwt"
jwtPayload "github.com/hahwul/jwt-hack/pkg/payload"
log "github.com/sirupsen/logrus"
Expand Down
22 changes: 11 additions & 11 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
module github.com/hahwul/jwt-hack

go 1.17
go 1.21

require (
github.com/briandowns/spinner v1.12.0
github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/briandowns/spinner v1.23.0
github.com/golang-jwt/jwt/v5 v5.2.1
github.com/logrusorgru/aurora v2.0.3+incompatible
github.com/sirupsen/logrus v1.8.0
github.com/spf13/cobra v1.1.3
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cobra v1.8.0
)

require (
github.com/fatih/color v1.7.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/magefile/mage v1.10.0 // indirect
github.com/mattn/go-colorable v0.1.2 // indirect
github.com/mattn/go-isatty v0.0.8 // indirect
github.com/fatih/color v1.17.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/spf13/pflag v1.0.5 // indirect
golang.org/x/sys v0.1.0 // indirect
golang.org/x/sys v0.20.0 // indirect
golang.org/x/term v0.20.0 // indirect
)
327 changes: 31 additions & 296 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/jwt/jwt.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package jwtInterface
import (
"fmt"

"github.com/dgrijalva/jwt-go"
"github.com/golang-jwt/jwt/v5"
)

// JWTencode is JWT interface for encode
Expand Down
2 changes: 1 addition & 1 deletion pkg/jwt/jwt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"reflect"
"testing"

"github.com/dgrijalva/jwt-go"
"github.com/golang-jwt/jwt/v5"
)

func TestJWTencode(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/payload/payload.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"os"
"strings"

"github.com/dgrijalva/jwt-go"
"github.com/golang-jwt/jwt/v5"
"github.com/sirupsen/logrus"
)

Expand Down
Loading