pre-commit manager stores version as float value in .pre-commit.yaml #45567
Unanswered
nijel
asked this question in
Request Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
How are you running Renovate?
A Mend.io-hosted app
Which platform you running Renovate on?
GitHub.com
Which version of Renovate are you using?
44.49.0
Please tell us more about your question or problem
The pre-commit manager inserts the version value without quoting. This works fine for most values, but once the version has only digits and a single dot, it will get parsed as a float from the YAML. Such values should be quoted so that the version is a string literal and not a float literal.
I have not verified if the same issue applies if the version contains another YAML markup (such as aliases or anchors).
translate/translate#6533 shows this.
Logs (if relevant)
Logs
All reactions