Having run make bootstrap-tools to install the requisite version of golangci-lint - 1.45.0 - into .tmp/golangci-lint other make commands lead to a panicfrom golangci-lint : -
Later versions from 1.48.0 through the current latest - 1.50.1 - work OK
What you expected to happen:
make etc. that leverages golangci-lint should run to completion; also golangci-lint commands such .tmp/golangci-lint --version should just work: -
golangci-lint has version 1.50.1 built from 8926a95f on 2022-10-22T10:50:47Z
How to reproduce it (as minimally and precisely as possible):
What happened:
Having run
make bootstrap-tools
to install the requisite version ofgolangci-lint
-1.45.0
- into.tmp/golangci-lint
other make commands lead to apanic
fromgolangci-lint
: -In fact, merely running
.tmp/golangci-lint
results in the same panic.This is due to an issue with
golangci-lint
itself, as per this - go-critic/ruleguard: load embedded ruleguard rules: rules/rules.go:13: can't load fmt #3107 - and occurs with versions1.45.0
,1.46.0
and1.47.0
.Later versions from
1.48.0
through the current latest -1.50.1
- work OKWhat you expected to happen:
make
etc. that leveragesgolangci-lint
should run to completion; alsogolangci-lint
commands such.tmp/golangci-lint --version
should just work: -How to reproduce it (as minimally and precisely as possible):
make bootstrap-tools
golangci-lint
via.tmp/golangci-lint --version
or just runmake
Anything else we need to know?:
Environment:
go version
sw_vers
I've also reproduced the same on Ubuntu
I'll create a PR from my own fork, updating
golangci-lint
to the (current) latest -1.50.1
- as per that project's releases page