Skip to content

Conversation

@bbannier
Copy link
Contributor

A version number could look like a float, e.g., 0.49 is a valid version number. Serde YAML serialization already renders such version numbers in quotes so types match the expectation. When doing an autoupdate we were explicitly adding more quotes if they were present in the input. This could have caused incorrect quoting if existing quoting clashed with serde's quoting style, e.g., if " where used but serde defaulted to quoting with '.

This patch removes any extra quoting here and fully defers to serde.

Closes #866.

A version number could look like a float, e.g., 0.49 is a valid version
number. Serde YAML serialization already renders such version numbers in
quotes so types match the expectation. When doing an autoupdate we were
explicitly adding more quotes if they were present in the input. This
could have caused incorrect quoting if existing quoting clashed with
serde's quoting style, e.g., if `"` where used but serde defaulted to
quoting with `'`.

This patch removes any extra quoting here and fully defers to serde.

Closes j178#866.
@codecov
Copy link

codecov bot commented Oct 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.50%. Comparing base (33864f2) to head (c1fbcd9).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #867      +/-   ##
==========================================
- Coverage   89.53%   89.50%   -0.03%     
==========================================
  Files          60       60              
  Lines       11204    11201       -3     
==========================================
- Hits        10031    10025       -6     
- Misses       1173     1176       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bbannier bbannier marked this pull request as ready for review October 11, 2025 10:17
@j178
Copy link
Owner

j178 commented Oct 11, 2025

Thanks, I think this makes sense.

@j178 j178 merged commit ee7110b into j178:master Oct 11, 2025
18 checks passed
@bbannier bbannier deleted the topic/bbannier/issue-866 branch October 11, 2025 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

autoupdate can break quoting for float-like version numbers

2 participants