Fix opam file lookup when a pin is done with a local directory and a branch is specified #6409
Fix opam file lookup when a pin is done with a local directory and a branch is specified #6409rjbou wants to merge 2 commits intoocaml:masterfrom
Conversation
ff6dae3 to
413eee3
Compare
|
After lengthy reviewing and tinkering i wasn't satisfied with the solution either so i came up with a different proposal, which while a bit radical i strongly believe to be a positive change for users: Currently pinning a local vcs directory will override the opam files with whatever the version in the working directory is, regardless of whether or not I've pushed the proposal as the What do you think? |
413eee3 to
ec45d71
Compare
ec45d71 to
ff6dae3
Compare
kit-ty-kate
left a comment
There was a problem hiding this comment.
I strongly believe the magic should be removed all together instead as mentioned above
fix #6408
I'm not fully satisfied with that solution... But it may not be kept, superseded by #6419.
This PR changes the behaviour ofopam pin add ./local-vcswhich would take the opam files from the VCS repository even if they had untracked changes. This behaviour exists since opam 2.1 (see #4300) but opam 2.0 didn't have the same behaviour.The addition of a note about untracked changes can be added separately and is tracked by #6414