Skip to content

Conversation

kit-ty-kate
Copy link
Member

Extracted from #6625
Fixes #5346

@kit-ty-kate kit-ty-kate added this to the 2.5.0~alpha1 milestone Aug 28, 2025
@kit-ty-kate kit-ty-kate changed the title Fix var opamfile Make the computation of pkg:opamfile match its specification Aug 28, 2025
@kit-ty-kate kit-ty-kate requested a review from rjbou August 29, 2025 11:44
|> string
|> Option.some
else
None
Copy link
Collaborator

@rjbou rjbou Sep 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To keep the same behaviour, we need to keep the old computation here to be able to retrieve the information during package's actions (build/install)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our own manual says:

opamfile: if the package is installed, path of its opam file, from opam internals, otherwise not defined

I'm not sure we should invite users to use _:opamfile in build/install/…

@kit-ty-kate kit-ty-kate requested a review from rjbou September 1, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

opamfile variable refers to missing file
2 participants