Skip to content

Add an "invisible" flag to require packages to be installed explicitly #4526

@kit-ty-kate

Description

@kit-ty-kate

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 to opam 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions