Skip to content

Commit 4564da3

Browse files
authored
chore: move golangci-lint version to .tool-versions (#1349)
This way there's only one source of truth, and it's available for local setups using mise, asdf, or the like too.
1 parent 83ec3a9 commit 4564da3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818
- name: golangci-lint
1919
uses: golangci/golangci-lint-action@v8
2020
with:
21-
version: v2.10.1
21+
version-file: .tool-versions

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
golangci-lint 2.10.1

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ lint: bin/golangci-lint
3737
bin/golangci-lint run --fix
3838

3939
bin/golangci-lint:
40-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b bin/ v2.10.1
40+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b bin/ v$$(awk '/^golangci-lint[[:space:]]/ { print $2 }' .tool-versions)
4141

4242
.ONESHELL:
4343
version:

0 commit comments

Comments
 (0)