You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The v1.1.5 v2-compat patch used `sed -n 's/.*version v\([0-9]\+\).*/\1/p'`,
which (a) requires the `v` prefix that current `golangci-lint version` output
no longer emits (`golangci-lint has version 2.12.2 built with ...`) and
(b) uses `\{0,1\}` quantifier in BRE that BSD sed on macOS doesn't accept.
Switched to `sed -E -n 's/.*version v?([0-9]+).*/\1/p'` (ERE; `v` optional).
Without this, every consumer with golangci-lint v2.x falls through to the
`--disable-all` branch and trips "unknown flag" again. Surfaced on
html-to-markdown's prek run after the v1.1.5 bump.
0 commit comments