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
New package variable: opamfile
#4402
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Some concerns about the generality of implementation, and maybe we could find a better name ? (-loc
doesn't sound straightforward to me... Why not just opamfile
or opam-file
?)
in | ||
OpamFile.OPAM.get_metadata_dir ~repos_roots opam | ||
|> OpamStd.Option.map (fun d -> | ||
OpamFilename.Op.(d//"opam") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, does this work for pinned packages ? Can't the file be named differently?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for pinned packages, it's stored in the overlay
dir, in the file opam
, and from repo, its the package dir with name opam
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aah right, it'll never get back to the original srcdir, we always have a mirror, got it! 👍
maybe worth adding a comment ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's always there, in the current run of opam (repo dir are tmp ones), yes. In fact, it's the code of OpamRepositoryState.get_root
, that is not reachable from OpamPackageVar
.
+1 for the comment
ok for me to rename it. |
I think |
bf6978a
to
70bbe1b
Compare
opamfile-loc
opamfile
superseeds #4387