You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we pin a local VCS directory, if the locally fetched branch is not the one that is specified in argument, opam look up for the local directory without taking into account the branch.
Example:
> git checkout snd
Switched to branch 'snd'
> git ls-files
snd.opam
> git checkout fst
Switched to branch 'fst'
> git ls-files
fst.opam
> cd ..
> opam pin snd ./mydir#snd -n
[NOTE] Package snd does not exist in opam repositories registered in the current switch.
[snd.dev] synchronised (git+file://path/to/mydir#snd)
[NOTE] No package definition found for snd.dev: please complete the template
[WARNING] The opam file didn't pass validation:
error 22: Some fields are present but empty; remove or fill them: "homepage", "license", "bug_reports"
error 57: Synopsis must not be empty
warning 62: License doesn't adhere to the SPDX standard, see https://spdx.org/licenses/ : ""
Proceed anyway ('no' will re-edit)? [Y/n] y
You can edit this file again with "opam pin edit snd", export it with "opam show snd --raw"
snd is now pinned to git+file://path/to/local#snd (version dev)
This is due to the magic lookup of an opam file : it should be retrieved even if it is not committed.
The text was updated successfully, but these errors were encountered:
rjbou
linked a pull request
Mar 5, 2025
that will
close
this issue
When we pin a local VCS directory, if the locally fetched branch is not the one that is specified in argument, opam look up for the local directory without taking into account the branch.
Example:
This is due to the magic lookup of an opam file : it should be retrieved even if it is not committed.
The text was updated successfully, but these errors were encountered: