This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go-pixiu.git
The following commit(s) were added to refs/heads/develop by this push:
new b5901aee Chore: upgrade dependencies jwt (#874)
b5901aee is described below
commit b5901aee02e4db209fbdeaf51bb955f30690edc5
Author: aias00 <[email protected]>
AuthorDate: Tue Jan 27 16:15:57 2026 +0800
Chore: upgrade dependencies jwt (#874)
* chore: upgrade deprecated jwt-go to golang-jwt/jwt/v4
* chore: update port mappings in docker-compose.yml
Signed-off-by: liuhy <[email protected]>
* chore: reorder jwt import statements in multiple files
---------
Signed-off-by: liuhy <[email protected]>
---
admin/controller/account/guest.go | 4 ++--
admin/controller/account/user.go | 4 ++--
admin/controller/auth/auth.go | 4 ++--
go.mod | 1 -
go.sum | 1 -
5 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/admin/controller/account/guest.go
b/admin/controller/account/guest.go
index 126f446d..abc69d06 100644
--- a/admin/controller/account/guest.go
+++ b/admin/controller/account/guest.go
@@ -24,10 +24,10 @@ import (
)
import (
- "github.com/dgrijalva/jwt-go"
-
"github.com/gin-gonic/gin"
+ "github.com/golang-jwt/jwt/v4"
+
"github.com/pkg/errors"
)
diff --git a/admin/controller/account/user.go b/admin/controller/account/user.go
index 06582c4f..8ab41a51 100644
--- a/admin/controller/account/user.go
+++ b/admin/controller/account/user.go
@@ -23,9 +23,9 @@ import (
)
import (
- "github.com/dgrijalva/jwt-go"
-
"github.com/gin-gonic/gin"
+
+ "github.com/golang-jwt/jwt/v4"
)
import (
diff --git a/admin/controller/auth/auth.go b/admin/controller/auth/auth.go
index fa3a49ef..c139ce2d 100644
--- a/admin/controller/auth/auth.go
+++ b/admin/controller/auth/auth.go
@@ -23,10 +23,10 @@ import (
)
import (
- "github.com/dgrijalva/jwt-go"
-
"github.com/gin-gonic/gin"
+ "github.com/golang-jwt/jwt/v4"
+
"github.com/pkg/errors"
)
diff --git a/go.mod b/go.mod
index ffb3ee56..366c4e8a 100644
--- a/go.mod
+++ b/go.mod
@@ -12,7 +12,6 @@ require (
github.com/apache/dubbo-getty v1.4.10
github.com/apache/dubbo-go-hessian2 v1.12.5
github.com/creasty/defaults v1.5.2
- github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/dubbogo/go-zookeeper v1.0.4-0.20211212162352-f9d2183d89d5
github.com/dubbogo/gost v1.14.3
github.com/dubbogo/grpc-go v1.42.10
diff --git a/go.sum b/go.sum
index 0820eaea..a01194ba 100644
--- a/go.sum
+++ b/go.sum
@@ -277,7 +277,6 @@ github.com/dgraph-io/badger/v3 v3.2103.2
h1:dpyM5eCJAtQCBcMCZcT4UBZchuTJgCywerHH
github.com/dgraph-io/badger/v3 v3.2103.2/go.mod
h1:RHo4/GmYcKKh5Lxu63wLEMHJ70Pac2JqZRYGhlyAo2M=
github.com/dgraph-io/ristretto v0.1.0
h1:Jv3CGQHp9OjuMBSne1485aDpUkTKEcUqF+jm/LuerPI=
github.com/dgraph-io/ristretto v0.1.0/go.mod
h1:fux0lOrBhrVCJd3lcTHsIJhq1T2rokOu6v9Vcb3Q9ug=
-github.com/dgrijalva/jwt-go v3.2.0+incompatible
h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod
h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod
h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48
h1:fRzb/w+pyskVMQ+UbP35JkH8yB7MYb4q/qhBarqZE6g=