From e43e152c6915102a0be072ef7c3709147c1039ed Mon Sep 17 00:00:00 2001 From: Nikita Skrynnik Date: Mon, 3 Jul 2023 20:15:20 +1100 Subject: [PATCH] Update GO Signed-off-by: Nikita Skrynnik --- .github/workflows/ci.yaml | 2 +- .golangci.yml | 18 ++++++------------ go.mod | 2 +- 3 files changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8db361c..ecc3a2f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -52,7 +52,7 @@ jobs: sudo chmod -R 777 /bin - uses: actions/setup-go@v1 with: - go-version: 1.16 + go-version: 1.20.5 github-token: ${{ github.token }} - name: setup env run: | diff --git a/.golangci.yml b/.golangci.yml index 5925cda..feb33dc 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,6 +1,6 @@ --- run: - # concurrency: 6 + go: "1.20" timeout: 2m issues-exit-code: 1 tests: true @@ -41,13 +41,11 @@ linters-settings: min-len: 2 min-occurrences: 2 depguard: - list-type: blacklist - include-go-root: false - packages: - - errors - packages-with-error-message: - # specify an error message to output when a blacklisted package is used - - errors: 'Please use "github.com/pkg/errors" instead of "errors" in go imports' + rules: + main: + deny: + - pkg: errors + desc: Please use github.com/pkg/errors instead of errors in go imports misspell: locale: US unparam: @@ -128,13 +126,11 @@ linters-settings: linters: disable-all: true enable: - # - rowserrcheck - goheader - bodyclose - deadcode - depguard - dogsled - # - dupl - errcheck - funlen - gochecknoinits @@ -149,7 +145,6 @@ linters: - govet - ineffassign - interfacer - # - lll - misspell - nakedret - scopelint @@ -159,7 +154,6 @@ linters: - typecheck - unconvert - unparam - # - unused - varcheck - whitespace issues: diff --git a/go.mod b/go.mod index 31154be..8b1d9e9 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/networkservicemesh/integration-interdomain-k8s -go 1.18 +go 1.20 require ( github.com/networkservicemesh/integration-tests v0.0.0-20230621095631-2fd1de880488