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

Rebuild packages only when what is going to be installed can change #5118

Merged
merged 4 commits into from
Apr 28, 2022

Conversation

kit-ty-kate
Copy link
Member

Fixes #4647

The tests are nowhere near complete but it’s a start and it shows that #4647 (comment) discussed earlier is the only thing needed to get it working amazingly. Thanks a lot!

In this PR I’ve also fixed a bug where adding or removing the plugin flag does not reinstall a package, which shouldn’t be the case as currently plugin creating and delation are only done during the installation and removal actions respectively.

Regarding the code, I went the ?(modulo_state=false) approach instead of duplicating the function because it made thing clearer regarding what is the difference between effectively_part and effectively_part_modulo_state

@kit-ty-kate kit-ty-kate added this to PR in progress in Opam 2.2.0 via automation Apr 14, 2022
@kit-ty-kate kit-ty-kate added this to the 2.2.0~alpha milestone Apr 14, 2022
@kit-ty-kate kit-ty-kate force-pushed the effectively_equal-modulo_state branch from 41455a9 to d3c76fe Compare April 14, 2022 23:04
@kit-ty-kate kit-ty-kate moved this from PR in progress to PR to review in Opam 2.2.0 Apr 21, 2022
@kit-ty-kate
Copy link
Member Author

All green and ready to go

@kit-ty-kate kit-ty-kate force-pushed the effectively_equal-modulo_state branch from e1bff2f to 7fc0b18 Compare April 27, 2022 17:27
master_changes.md Outdated Show resolved Hide resolved
@kit-ty-kate kit-ty-kate force-pushed the effectively_equal-modulo_state branch from 7fc0b18 to 2539238 Compare April 27, 2022 17:43
@rjbou rjbou moved this from PR to review to PR finalised (merge with CI) in Opam 2.2.0 Apr 27, 2022
@kit-ty-kate kit-ty-kate merged commit e248252 into ocaml:master Apr 28, 2022
Opam 2.2.0 automation moved this from PR finalised (merge with CI) to Done Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Opam 2.2.0
  
Done
Development

Successfully merging this pull request may close these issues.

feature request: do not rebuild packages when only unimportant constraint has been changed
2 participants