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

Allow opam pin remove to take a package as argument #5325

Merged
merged 4 commits into from Oct 31, 2022

Conversation

kit-ty-kate
Copy link
Member

Reasoning:

opam pin list returns something of the form:

<pkg>.<version>    <kind>  <target>

However users often simply expect that selecting the first column (<pkg>.<version>), done very simply by double-clicking on the name on the terminal, to unpin the package would work. However doing this will end up in a rather surprising failure:

[ERROR] No package pinned to this target found, or invalid package name/url: <pkg>.<version>

This PR removes this surprising restriction

src/client/opamPinCommand.ml Outdated Show resolved Hide resolved
@kit-ty-kate kit-ty-kate force-pushed the unpin-version branch 2 times, most recently from d977e46 to f97d1ab Compare October 21, 2022 13:56
src/client/opamCommands.ml Outdated Show resolved Hide resolved
src/client/opamCommands.ml Show resolved Hide resolved
@kit-ty-kate kit-ty-kate force-pushed the unpin-version branch 2 times, most recently from a97e22b to 0c7e474 Compare October 25, 2022 16:52
src/state/opamPinned.mli Outdated Show resolved Hide resolved
@rjbou rjbou merged commit 3e764ac into ocaml:master Oct 31, 2022
@rjbou rjbou added this to PR in progress in Opam 2.2.0 via automation Oct 31, 2022
@rjbou rjbou added this to the 2.2.0~alpha milestone Oct 31, 2022
@kit-ty-kate kit-ty-kate moved this from PR in progress to Done in Opam 2.2.0 Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Opam 2.2.0
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants