fix: go.mod parsing (#1165)

This commit is contained in:
Ludovic Fernandez
2025-02-13 13:35:39 +01:00
committed by GitHub
parent 051d919338
commit ea34ee71d6
7 changed files with 1172 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ export type Version = {
const versionRe = /^v(\d+)\.(\d+)(?:\.(\d+))?$/
// TODO(ldez): it should be updated to match v2 module name.
const modVersionRe = /github.com\/golangci\/golangci-lint\s(v.+)/
const modVersionRe = /github.com\/golangci\/golangci-lint\s(v\S+)/
const parseVersion = (s: string): Version => {
if (s == "latest" || s == "") {