mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
Github Action for Go has had a bug when parsing the current Go version from `dev-lang/go/Manifest`, only when the current ebuild file has only major + minor versions, without patchlevel. For example, it could parse well `1.13.15`, but not `1.15`. We need to make it deal with both versions, `x.y.z` and `x.y`. With this PR, for example, when `VERSION_SHORT` is `1.15` and the Manifest includes a tarball `go1.15.src.tar.gz`, we can confirm the new regexp works well like below: ``` $ sed -n "s/^DIST go\(1\.15\.*[0-9]*\)\.src.*/\1/p" dev-lang/go/Manifest 1.15 ``` |
||
---|---|---|
.. | ||
src/third_party/coreos-overlay |