diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1586578a..6f70b889 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -17,13 +17,13 @@ jobs:
uses: actions/checkout@v4
- name: Setup Go
id: go
- uses: actions/setup-go@v4
+ uses: actions/setup-go@v5
with:
- go-version-file: 'go.mod'
+ go-version: ^1.23
- name: Install golangci-lint
uses: golangci/golangci-lint-action@v6
with:
- version: latest
+ version: v1.61
- name: Install dependency
run: if [ $(uname) == "Darwin" ]; then brew install gnu-sed ;fi
- name: Build
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index cea2f4d7..0fb8d330 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -14,9 +14,9 @@ jobs:
- name: Check out code
uses: actions/checkout@v4
- name: Setup Go
- uses: actions/setup-go@v4
+ uses: actions/setup-go@v5
with:
- go-version-file: 'go.mod'
+ go-version: ^1.23
- name: Set GOVERSION
run: echo "GOVERSION=$(go version | sed -r 's/go version go(.*)\ .*/\1/')" >> $GITHUB_ENV
diff --git a/.github/workflows/smoke_test_reuse_job.yml b/.github/workflows/smoke_test_reuse_job.yml
index be00a029..77609046 100644
--- a/.github/workflows/smoke_test_reuse_job.yml
+++ b/.github/workflows/smoke_test_reuse_job.yml
@@ -16,9 +16,9 @@ jobs:
uses: actions/checkout@v4
- name: Setup Go
id: go
- uses: actions/setup-go@v4
+ uses: actions/setup-go@v5
with:
- go-version-file: 'go.mod'
+ go-version: ^1.23
- name: Install
run: make install
- name: Check rebuild
diff --git a/.github/workflows/smoke_test_reuse_job_windows.yml b/.github/workflows/smoke_test_reuse_job_windows.yml
index 920de082..4a01aa67 100644
--- a/.github/workflows/smoke_test_reuse_job_windows.yml
+++ b/.github/workflows/smoke_test_reuse_job_windows.yml
@@ -18,7 +18,7 @@ jobs:
id: go
uses: actions/setup-go@v4
with:
- go-version-file: 'go.mod'
+ go-version: ^1.23
- name: Setup Python
uses: actions/setup-python@v5
with:
diff --git a/.golangci.yml b/.golangci.yml
index c84882c6..ddadae49 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -4,6 +4,7 @@ run:
linters:
disable-all: true
enable:
+ - copyloopvar # detects places where loop variables are copied
- errcheck # Errcheck is a program for checking for unchecked errors in go programs.
- gci # Gci controls Go package import order and makes it always deterministic
- goimports # checks that goimports was run
@@ -12,5 +13,6 @@ linters:
- revive # configurable linter for Go. Drop-in replacement of golint
- staticcheck # go vet on steroids
- stylecheck # static analysis, finds bugs and performance issues, offers simplifications, and enforces style rules
+ - testifylint # checks usage of github.com/stretchr/testify
- unconvert # Remove unnecessary type conversions
- unused # Checks Go code for unused constants, variables, functions and types
diff --git a/Dockerfile b/Dockerfile
index 123a3815..3231af42 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,8 +5,8 @@ LABEL maintainer="Rick Yu