From 4d5b39fc04978ac24aebd95eb32aa63e11c475a2 Mon Sep 17 00:00:00 2001 From: tornado-ssy <64736788+tornado-ssy@users.noreply.github.com> Date: Thu, 25 Jan 2024 20:27:29 +0800 Subject: [PATCH] [fix] fix golangci-lint (#318) Co-authored-by: songshiyuan 00649746 (cherry picked from commit 577408ac263c0518ecd53ab7dfe70dad1d3b1fd9) --- .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 b977042d..3c8ae4f6 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 4214262f..93e45872 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() {