Skip to content

Commit aad0c0a

Browse files
committed
pin tools
1 parent 0878c41 commit aad0c0a

3 files changed

Lines changed: 13 additions & 2 deletions

File tree

.tool-versions

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
golang 1.25.3
2+
golangci-lint 2.6.1
3+
task 3.45.5

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This linter is a maintained fork of the [refdir linter by @devnev](https://githu
99
- Interface selections are treated as type references rather than function references. Avoids logical contradiction wrt interface type definition and reference inside same file.
1010
- Lesser noise for universal scope identifiers.
1111
- Working `golangci-lint` custom module plugin for version > 2.
12-
- Chores: Stricter `golangci-lint` config compliant code; `taskfile.dev` tasks; github action integration, vscode settings folders, updated dependencies; improved readme.
12+
- Chores: Stricter `golangci-lint` config compliant code; `taskfile.dev` tasks; github action integration, vscode settings folders, updated and pinned dependencies/tools; improved readme.
1313

1414
**Disclaimer**: false positives; practically this is useful for "exploration" rather than for "enforcement".
1515

taskfile.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ tasks:
1111
- echo "{{.GREETING}}"
1212
silent: true
1313

14+
installtools:
15+
cmds:
16+
# Install task, go, golangci-lint, cloc externally. E.g via asdf. the needed versions are pinned in .tool-versions file.
17+
- go install golang.org/x/tools/gopls@v0.20.0
18+
- go install github.com/oligot/go-mod-upgrade@v0.12.0
19+
- go install github.com/kisielk/godepgraph@v1.0.0
20+
- go install github.com/ppipada/refdir@v0.7.0
21+
1422
cloc:
1523
cmds:
1624
- |
@@ -29,7 +37,7 @@ tasks:
2937

3038
lint-gosort:
3139
cmds:
32-
# Use a go get version of this repo.
40+
# Use a installed version of this repo.
3341
- refdir ./...
3442

3543
lint:

0 commit comments

Comments
 (0)