Skip to content

Fix erroneous recompilations on files with empty but present build/runtest/install/remove field#6505

Merged
kit-ty-kate merged 2 commits intoocaml:masterfrom
kit-ty-kate:fix-recompile-empty-build
Oct 16, 2025
Merged

Fix erroneous recompilations on files with empty but present build/runtest/install/remove field#6505
kit-ty-kate merged 2 commits intoocaml:masterfrom
kit-ty-kate:fix-recompile-empty-build

Conversation

@kit-ty-kate
Copy link
Copy Markdown
Member

@kit-ty-kate kit-ty-kate commented May 3, 2025

Fixes #5814
and partially #6480
See description in #5814 (comment)

Doing so also seems to speedup a couple of actions (see the "Nothing to do" changes in the tests)

### opam switch create no-recompile --empty
### <pkg:ocaml.5>
opam-version: "2.0"
### :WARN: Do NOT use "<pin:...>" for the following line
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@kit-ty-kate kit-ty-kate force-pushed the fix-recompile-empty-build branch from 0cadc95 to 4a37e02 Compare May 3, 2025 17:34
@rjbou rjbou self-requested a review May 12, 2025 12:45
@kit-ty-kate kit-ty-kate added this to the 2.5.0~alpha1 milestone Jul 29, 2025
@kit-ty-kate kit-ty-kate force-pushed the fix-recompile-empty-build branch from 4a37e02 to 3e8d397 Compare October 1, 2025 12:35
@rjbou rjbou force-pushed the fix-recompile-empty-build branch from 3e8d397 to 0fc26a5 Compare October 16, 2025 16:15
@kit-ty-kate kit-ty-kate merged commit 88ba21c into ocaml:master Oct 16, 2025
46 checks passed
@kit-ty-kate kit-ty-kate deleted the fix-recompile-empty-build branch October 16, 2025 17:35
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.

opam recompiles unchanged package on upgrade

2 participants