You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by li...@apache.org on 2024/01/25 12:27:35 UTC

(servicecomb-kie) branch master updated: [fix] fix golangci-lint (#318)

This is an automated email from the ASF dual-hosted git repository.

littlecui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/servicecomb-kie.git


The following commit(s) were added to refs/heads/master by this push:
     new 577408a  [fix] fix golangci-lint (#318)
577408a is described below

commit 577408ac263c0518ecd53ab7dfe70dad1d3b1fd9
Author: tornado-ssy <64...@users.noreply.github.com>
AuthorDate: Thu Jan 25 20:27:29 2024 +0800

    [fix] fix golangci-lint (#318)
    
    Co-authored-by: songshiyuan 00649746 <so...@huawei.com>
---
 .github/workflows/golangci-lint.yml | 2 +-
 server/server.go                    | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml
index b977042..3c8ae4f 100644
--- a/.github/workflows/golangci-lint.yml
+++ b/.github/workflows/golangci-lint.yml
@@ -15,7 +15,7 @@ jobs:
       - name: golangci-lint
         uses: golangci/golangci-lint-action@v2
         with:
-          version: v1.51.2
+          version: v1.55.2
           args: --enable gofmt,gocyclo,goimports,dupl,gosec --timeout 5m --skip-dirs=examples,test --skip-files=.*_test.go$
   static-checks:
     runs-on: ubuntu-latest
diff --git a/server/server.go b/server/server.go
index 4214262..93e4587 100644
--- a/server/server.go
+++ b/server/server.go
@@ -18,6 +18,10 @@
 package server
 
 import (
+	chassis "github.com/go-chassis/go-chassis/v2"
+	"github.com/go-chassis/go-chassis/v2/core/common"
+	"github.com/go-chassis/openlog"
+
 	"github.com/apache/servicecomb-kie/pkg/validator"
 	"github.com/apache/servicecomb-kie/server/config"
 	"github.com/apache/servicecomb-kie/server/datasource"
@@ -25,9 +29,6 @@ import (
 	"github.com/apache/servicecomb-kie/server/pubsub"
 	"github.com/apache/servicecomb-kie/server/rbac"
 	v1 "github.com/apache/servicecomb-kie/server/resource/v1"
-	"github.com/go-chassis/go-chassis/v2"
-	"github.com/go-chassis/go-chassis/v2/core/common"
-	"github.com/go-chassis/openlog"
 )
 
 func Run() {