From c73ca4f0263d46164b254897be1b124b0af723c0 Mon Sep 17 00:00:00 2001 From: aajkl Date: Sat, 29 Jun 2024 12:12:42 +0800 Subject: [PATCH] update ci and fix lint issues --- .github/workflows/golangci-lint.yml | 4 ++-- go.mod | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 16256ee..9c6afa4 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -16,12 +16,12 @@ jobs: uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version-file: 'go.mod' - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 env: ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' with: diff --git a/go.mod b/go.mod index 6d4f168..e56e692 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,6 @@ require ( github.com/BurntSushi/toml v1.3.2 github.com/DATA-DOG/go-sqlmock v1.5.0 github.com/alicebob/miniredis/v2 v2.32.1 - github.com/alphadose/haxmap v1.3.1 github.com/aws/aws-sdk-go v1.51.16 github.com/btcsuite/btcutil v1.0.2 github.com/cenkalti/backoff/v4 v4.2.1 @@ -16,7 +15,6 @@ require ( github.com/dgrijalva/jwt-go v3.2.0+incompatible github.com/duke-git/lancet v1.4.3 github.com/dustin/go-humanize v1.0.1 - github.com/getsentry/sentry-go v0.23.0 github.com/gin-contrib/cors v1.4.0 github.com/gin-contrib/i18n v1.1.1 github.com/gin-contrib/sessions v1.0.0 @@ -48,14 +46,13 @@ require ( go.etcd.io/bbolt v1.3.8 golang.org/x/crypto v0.23.0 golang.org/x/text v0.15.0 - google.golang.org/grpc v1.60.1 - gopkg.in/natefinch/lumberjack.v2 v2.2.1 gopkg.in/yaml.v3 v3.0.1 ) require ( github.com/KyleBanks/depth v1.2.1 // indirect github.com/alicebob/gopher-json v0.0.0-20230218143504-906a9b012302 // indirect + github.com/alphadose/haxmap v1.3.1 // indirect github.com/bytedance/sonic v1.11.3 // indirect github.com/cespare/xxhash/v2 v2.2.0 // indirect github.com/chenzhuoyu/base64x v0.0.0-20230717121745-296ad89f973d // indirect @@ -66,6 +63,7 @@ require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect github.com/gabriel-vasile/mimetype v1.4.3 // indirect + github.com/getsentry/sentry-go v0.23.0 // indirect github.com/gin-contrib/sse v0.1.0 // indirect github.com/go-logr/logr v1.4.1 // indirect github.com/go-openapi/jsonpointer v0.21.0 // indirect @@ -117,5 +115,7 @@ require ( golang.org/x/sys v0.20.0 // indirect golang.org/x/time v0.3.0 // indirect golang.org/x/tools v0.21.0 // indirect + google.golang.org/grpc v1.60.1 // indirect google.golang.org/protobuf v1.33.0 // indirect + gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect )