chore: fix `golangci-lint` locally (#815)
For some reason, golangci-lint is not behaving too well after we upgraded
to Go 1.25 and enabled GreenTea GC.
After some debugging, I found out that we need to compile with Go 1.25
toolchain and run with the GreenTeaGC experiment _disabled_.
The build from Nix was built with Go 1.24, so that one doesn't work as
expected.
commit5a9968522169d6285b2478ff9723e0dd7a63b48b
authorAndrey Nering <andreynering@users.noreply.github.com>
dateMon 18 Aug 2025, 10:58 (1 year ago)
parent117c6b6
Taskfile.yaml+11
@@ -7,15 +7,26 @@ env:
77 GOEXPERIMENT: greenteagc
88
99tasks:
10+ lint:install:
11+ desc: Install golangci-lint
12+ cmds:
13+ - go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest
14+ env:
15+ GOTOOLCHAIN: go1.25.0
16+
1017 lint:
1118 desc: Run base linters
1219 cmds:
1320 - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m
21+ env:
22+ GOEXPERIMENT: null
1423
1524 lint-fix:
1625 desc: Run base linters and fix issues
1726 cmds:
1827 - golangci-lint run --path-mode=abs --config=".golangci.yml" --timeout=5m --fix
28+ env:
29+ GOEXPERIMENT: null
1930
2031 test:
2132 desc: Run tests