Skip to content

fix(yaml): improve target change detection logic #4864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 24, 2025
Merged

Conversation

omissis
Copy link
Contributor

@omissis omissis commented Apr 20, 2025

While debugging some issues I am having over at https://github.com/mecha-hq/images/ (eg: https://github.com/mecha-hq/images/actions/runs/14562281638/job/40847058933) I came across two issues:

  • go-yaml remove quotes from values when it shouldn't
  • updatecli's got some hiccups around a few scenarios where change detection fails because of how go-yaml stringifies nodes.

This PR aims at fixing the second issue by introducing a check against the stringified value of the value, and not just the "raw" one.

I discussed some of my findings at #4855

Thank you for considering this!

…ring to old value before deciding whether to skip the update
@olblak
Copy link
Member

olblak commented Apr 22, 2025

Thanks for the pullrequest and the test

@olblak olblak enabled auto-merge (squash) April 24, 2025 15:00
@olblak olblak disabled auto-merge April 24, 2025 15:00
@olblak olblak enabled auto-merge (squash) April 24, 2025 15:00
@olblak olblak merged commit d38095f into updatecli:main Apr 24, 2025
6 of 7 checks passed
@olblak olblak added the bug Something isn't working label Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants