Skip to content

Commit

Permalink
Add note about YAML parsing versions (#382)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-shibanov authored Jun 8, 2023
1 parent 0e6baa5 commit 992f068
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ steps:
- run: go version
```
> **Note**: Due to the peculiarities of YAML parsing, it is recommended to wrap the version in single quotation marks:
>
> ```yaml
> go-version: '1.20'
> ```
>
> The recommendation is based on the YAML parser's behavior, which interprets non-wrapped values as numbers and, in the case of version 1.20, trims it down to 1.2, which may not be very obvious.
Matching an unstable pre-release:

```yaml
Expand Down

0 comments on commit 992f068

Please sign in to comment.