Skip to content

Commit

Permalink
cmd/govulncheck/testdata: expand set of go versions in fixup
Browse files Browse the repository at this point in the history
An example is a multi-word release candidate.

Change-Id: Id5ef9ebd1ba94dad692d5ae8a74f03cb513f24a9
Reviewed-on: https://go-review.googlesource.com/c/vuln/+/625576
Reviewed-by: Maceo Thompson <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
  • Loading branch information
zpavlinovic committed Nov 5, 2024
1 parent 3101014 commit 47cd072
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/govulncheck/testdata/common/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
"replace": "Go: go1.18"
},
{
"pattern": "\"go_version\": \"go[^\\s\"]*\"",
"pattern": "\"go_version\": \"go(.*)\"",
"replace": "\"go_version\": \"go1.18\""
},
{
"pattern": "\"timestamp\": (.*),",
"replace": "\"timestamp\": \"2024-01-01T00:00:00\","
},
{
"pattern": "path\": \"stdlib\",\n *\"version\": \"[^\\s]*\"",
"pattern": "path\": \"stdlib\",\n *\"version\": \"(.*)\"",
"replace": "path\": \"stdlib\",\n \"version\": \"v1.18.0\""
}
]
Expand Down
2 changes: 1 addition & 1 deletion cmd/govulncheck/testdata/stdlib/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"replace": "modified 01 Jan 21 00:00 UTC)"
},
{
"pattern": "\"go_version\": \"go[^\\s\"]*\"",
"pattern": "\"go_version\": \"go(.*)\"",
"replace": "\"go_version\": \"go1.18\""
}
]
Expand Down

0 comments on commit 47cd072

Please sign in to comment.