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

avoid-version packages should be ignored when opam upgrade refuses to upgrade #6271

Open
kit-ty-kate opened this issue Oct 28, 2024 · 0 comments · May be fixed by #6273
Open

avoid-version packages should be ignored when opam upgrade refuses to upgrade #6271

kit-ty-kate opened this issue Oct 28, 2024 · 0 comments · May be fixed by #6273

Comments

@kit-ty-kate
Copy link
Member

$ opam upgrade cohttp
Everything as up-to-date as possible (run with --verbose to show unavailable upgrades).

The following packages are not being upgraded because the new versions conflict with other installed packages:
  - cohttp.6.0.0~beta2
However, you may "opam upgrade" these packages explicitly, which will ask permission to downgrade or uninstall the conflicting packages.
Nothing to do.
$ opam install cohttp.6.0.0~beta2
The following actions will be performed:
=== downgrade 3 packages
  ↘ conduit          7.1.0 to 6.2.3       [required by conduit-lwt]
  ↘ conduit-lwt      7.1.0 to 6.2.3       [required by cohttp-lwt-unix]
  ↘ conduit-lwt-unix 7.1.0 to 6.2.3       [required by cohttp-lwt-unix]
=== recompile 3 packages
  ↻ github           4.4.1                [uses cohttp]
  ↻ github-unix      4.4.1                [uses cohttp]
  ↻ opam-publish     2.4.0 (pinned)       [uses github]
=== upgrade 3 packages
  ↗ cohttp           5.3.1 to 6.0.0~beta2
  ↗ cohttp-lwt       5.3.0 to 6.0.0~beta2 [uses cohttp]
  ↗ cohttp-lwt-unix  5.3.0 to 6.0.0~beta2 [uses cohttp]
=== install 1 package
  ∗ http             6.0.0~beta2          [required by cohttp]

Proceed with ↘ 3 downgrades, ↻ 3 recompilations, ↗ 3 upgrades and ∗ 1 installation? [y/n] n

The message shown on opam upgrade should not be there as cohttp.6.0.0~beta2 is flagged with avoid-version. The command should simply say that everything is up-to-date and should not mention the pre-release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant