opam upgrade -a package
fails to resolve dependencies because it refuses to downgrade
#3737
Labels
opam upgrade -a package
fails to resolve dependencies because it refuses to downgrade
#3737
In https://gitlab.mpi-sws.org/iris/iris/-/jobs/23068, you can see that opam fails to execute
opam upgrade -y --all build-dep/ coq
with the errorThat error message is heavily misleading, the required version of coq-stdpp exists -- but it is older than the currently installed version. I can reproduce this locally easily by creating a situation in which installing the latest package in
build-dep/
requires downgrading another package.Curiously, if I remove the
-a
, the downgrade works as expected. However, the entire point of usingopam upgrade -a PACKAGE
is make sure thatPAKCAGE
is installed and everything is up-to-date in a single transaction. It seems that that's not actually currently possible in opam.The text was updated successfully, but these errors were encountered: