-
Notifications
You must be signed in to change notification settings - Fork 371
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
"--skip-update" has no effect #4363
Comments
Hm, it's weird, for any pinned package opam is supposed to have a cache of its latest sources at For removals, however, these updates are never necessary, so indeed the option shouldn't do anything. I only tested on 2.1.0~beta2, but here is what I get after removing a pinned package's upstream: $ opam upgrade ocp-index
<><> Synchronising pinned packages ><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] Could not synchronize $OPAM_SWITCH_PREFIX/.opam-switch/sources/ocp-index from "git+file:///tmp/ocp-index.x#master":
"/usr/bin/git fetch -q" exited with code 128
[ocp-index.1.2.1] fetching sources failed: git+file:///tmp/ocp-index.x#master
Already up-to-date.
Nothing to do.
$ opam upgrade ocp-index --skip
Already up-to-date.
Nothing to do.
$ opam remove ocp-index
The following actions will be performed:
⊘ remove ocp-browser 1.2.1* [uses ocp-index]
⊘ remove ocp-index 1.2.1*
===== ⊘ 2 =====
Do you want to continue? [Y/n] y
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⊘ removed ocp-browser.1.2.1
⊘ removed ocp-index.1.2.1
Done. So there is no issue with either NB: have you tried To conclude, at this point I don't know yet if this is fixed in 2.1 or if I just couldn't reproduce. |
I have since worked around it by killing the hanging Note that the deinstallation did update many things because this is a system switch and the system compiler changed, so any command will rebuild all the things. (I always struggle hard to make it only rebuild the parts I intend to keep, but found it very hard to combine "rebuild" and "upgrade" and "remove stuff I do not need any more" in a single command so usually I just give up on the "upgrade" part.) Maybe that is related? |
Ah, it might be related, indeed... I'll see if I can reproduce with that extra information.
Indeed, I don't think I have an easy solution at the moment, there is no compound install/remove or upgrade/remove command. We have been discussing a more generic Maybe the most useful solution would be to add a flag that does something similar to Also note that you can do |
These are not usually autoinstalled packages that I want to get rid of. What usually happens is that I want to update some library, and then realize the system switch needs rebuilding. (All my switches are system switches. Maybe that is the mistake.^^ But it keeps them smaller.) If I now just |
Ah, actually the opposite could do the trick then ? |
Yeah, something like that... though then I still need two transactions if I also want to install something.
I will try to remember looking this up the next time the problem comes up (aka the next time debian upgrades its ocaml). Thanks! |
I have an opam package installed whose git URL is now dead.
opam uninstall coq-tlc
hangs forever, trying to download the latest sources:So I tried to add
--skip-updates
, but that does not help either, it still updates the package! Looks like it is impossible to uninstall or update this package, so I will have to delete the switch and start over again?The text was updated successfully, but these errors were encountered: