Skip to content
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

[2.2 backport] Fix highly embarrassing mistake in patch transformation #6183

Merged
merged 2 commits into from
Aug 29, 2024

Conversation

dra27
Copy link
Member

@dra27 dra27 commented Aug 27, 2024

2.2 version of #6182. This code was supposed to have been quite battle-tested, but of course it hasn't been owing to this error.

The fix in #6182 is for everywhere - I propose limiting it slightly in 2.2.2 to be for Windows-only, to remove the risk of 2.2.2 causing unexpected regressions on non-Windows platforms.

@dra27 dra27 added this to the 2.2.2 milestone Aug 27, 2024
Indicate at level 1 whether a patch has been copied or transformed.
OpamSystem.translate_patch embarrassingly only transformed patches when
--debug was in effect.
Copy link
Collaborator

@rjbou rjbou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@dra27
Copy link
Member Author

dra27 commented Aug 28, 2024

My logic was flawed - in 2.0 patches which need translating are silently skipped on Linux/macOS so it's arguably worse than the Windows case! The fix here therefore shouldn't cause any regressions, it should only cause patches which might have been being ignored to actually be applied.

@rjbou rjbou merged commit 05a669d into ocaml:2.2 Aug 29, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants