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
install --dry-run accidentally updates .opam-switch/install/<pkg-name>.changes #5132
Comments
Here is the output of
|
This commit workarounds ocaml/opam#5132 by restoring `$(opam var prefix)/.opam-switch/install/` after running `opam install --dry-run`.
* Workaround OPAM bug gh-5132 This commit workarounds ocaml/opam#5132 by restoring `$(opam var prefix)/.opam-switch/install/` after running `opam install --dry-run`.
I just found this bug was not limited to
https://github.com/na4zagin3/satyrographos-repo/runs/6240760811?check_suite_focus=true |
The files are wiped out by this part: Lines 1066 to 1074 in e36650b
|
This commit adds a test case to reproduce a bug reported at ocamlgh-5132 where `.changes` files are updated during dry-run.
This commit workaround OPAM Bug ocaml/opam#5132 by ignoring files that should have been uninstalled.
This commit workaround OPAM Bug ocaml/opam#5132 by ignoring files that should have been uninstalled.
This commit adds a test case to reproduce a bug reported at ocamlgh-5132 where `.changes` files are updated during dry-run.
Do not update .changes file during dry-run
Thanks! |
This commit adds a test case to reproduce a bug reported at ocamlgh-5132 where `.changes` files are updated during dry-run.
opam install --dry-run
accidentally wipes out.opam-switch/install/<pkg-name>.changes
when OPAM dry-runs package rebuild of any packages, including depending and depended ones.Minimum reproducible example
This example directly builds
num.1.4
andnum.1.3
because they are available atopam-repository
and their size and dependencies are small. The issue should be reproducible with any packages.Prepare a switch.
Install some version.
OPAM correctly detected the installed files as
added
files.Dry-run downgrade to an older version.
Surprisingly, OPAM wiped out
num.changes
.Then, try installing the older version.
The installed files are recognized as
contents-changed
.Notes
This problem was found during investigation of CI failures at na4zagin3/satyrographos-repo#434.
This may be the root cause of #4419.
Environment
The text was updated successfully, but these errors were encountered: