Open ydirson opened 11 months ago
This is a feature of YAML, not a bug. 1.70
is parsed as the number 1.7
.
The workaround is to wrap the string in quotes:
- toolchain: 1.70
+ toolchain: '1.70'
Arf, implicit stringification in a bad place. Should probably show examples with version numbers, not just stable
and nightly
, and put a bold note there.
(note I've started moving on to dtolnay/rut-toolchain
as a maintained successor of this project)
Description
After switching my action from install toolchain 1.66 to 1.70, what I actually get is 1.7.0 (and surprisingly he build fails). As a workaround requesting 1.70.0 works, but it's obviously not good, in case a 1.70.1 comes out.
Workflow code
https://github.com/xcp-ng/xcp-metrics/commit/51756943bb633ece8c5ebb398f2dad65d189308d
Action output
https://github.com/xcp-ng/xcp-metrics/actions/runs/6377565635/job/17306468710