-
Notifications
You must be signed in to change notification settings - Fork 346
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
Add an "invisible" flag to require packages to be installed explicitly #4526
Comments
|
Update from developer meeting: this should be spun into a full spec. It may also be possible to implement as a variable (to be used in the The goal - which cannot be achieved with It's definitely orthogonal to the |
(previous comments updated just to reflect that we did rename |
Thoughts from dev meeting to do this in 2.2: |
I had a quick look on what @dra27 just described, and unfortunately it's not as simple as I first thought: variables like Ah also, implementation wise it would be |
We could implement this by adding a new field Or we could change |
This is a follow up of #4432
I think
avoid-version
should stay as-is(it's too late to rename the variable anyway IMO)but I'd like to propose a new flag:invisible
which would make the package flagged with it effectively unavailable unless already installed or explicitly required (either via a lock file or an explicit call toopam install
).This would help opam-repository greatly as currently the way to """remove""" packages (i.e.
available: false
) effectively breaks any body using it explicitly in CI systems, lock files or that already installed it.Would help partially fix ocaml/opam-repository#10531
The text was updated successfully, but these errors were encountered: