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

Warn if an installation changes a package to avoid-version #4528

Open
dra27 opened this issue Feb 5, 2021 · 0 comments
Open

Warn if an installation changes a package to avoid-version #4528

dra27 opened this issue Feb 5, 2021 · 0 comments

Comments

@dra27
Copy link
Member

dra27 commented Feb 5, 2021

Second item from Nov 27 dev meeting

"Post-process solutions to see if packages have changed to be hidden and warn (with a default of not installing)"

Writing this while 4.12 is still unreleased:

$ opam switch invariant
["ocaml"]
$ opam list
# Packages matching: installed
# Name              # Installed # Synopsis
base-bigarray       base
base-threads        base
base-unix           base
ocaml               4.11.1      The OCaml compiler (virtual package)
ocaml-base-compiler 4.11.1      Official release 4.11.1
ocaml-config        1           OCaml Switch Configuration

Present behaviour:

opam install ocaml.4.12.0
The following actions will be performed:
  ∗ install ocaml-options-vanilla 1
  ↗ upgrade ocaml-base-compiler   4.11.1 to 4.12.0~beta2 [required by ocaml]
  ↗ upgrade ocaml-config          1 to 2                 [required by ocaml]
  ↗ upgrade ocaml                 4.11.1 to 4.12.0
===== ∗ 1   ↗ 3 =====
Do you want to continue? [Y/n]

Desired behaviour:

opam install ocaml.4.12.0
The following actions will be performed:
  ∗ install ocaml-options-vanilla 1
  ↗ upgrade ocaml-base-compiler   4.11.1 to 4.12.0~beta2 [required by ocaml]
  ↗ upgrade ocaml-config          1 to 2                 [required by ocaml]
  ↗ upgrade ocaml                 4.11.1 to 4.12.0
===== ∗ 1   ↗ 3 =====
[WARNING] Your request requires installation of pre-release packages (marked "avoid-version")
Do you want to continue? [y/N]

i.e. with an extra warning and a change of default

@dra27 dra27 added this to the 2.2.0~alpha milestone Feb 5, 2021
@dra27 dra27 changed the title Warn if an installation changes a package to hidden-version/avoid-version Warn if an installation changes a package to avoid-version Jul 2, 2021
@dra27 dra27 added this to To do in Opam 2.2.0 via automation Jul 13, 2021
@dra27 dra27 moved this from To do to Bump to 2.3? in Opam 2.2.0 Jan 13, 2022
@dra27 dra27 removed this from Bump to 2.3? in Opam 2.2.0 May 17, 2022
@dra27 dra27 added this to To do in Opam 2.3 via automation May 17, 2022
@dra27 dra27 removed this from the 2.2.0~alpha milestone May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Opam 2.3
  
To do
Development

No branches or pull requests

1 participant