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

opam show -f version: ./opam does not read the given opam file. #3423

Closed
dbuenzli opened this issue Jun 19, 2018 · 4 comments · Fixed by #3427
Closed

opam show -f version: ./opam does not read the given opam file. #3423

dbuenzli opened this issue Jun 19, 2018 · 4 comments · Fixed by #3427
Assignees
Milestone

Comments

@dbuenzli
Copy link
Contributor

It seems to consult the opam-repository, e.g. here in the repo of uucp (whose opam file has no version: field).

> opam show --normalise -f version: ./opam
"11.0.0"

Here in an opam file which has no version field and which opam doesn't seem to match to an existing package:

> opam show --no-lint --normalise -f version: ./opam
"~dev"
@rjbou
Copy link
Collaborator

rjbou commented Jun 21, 2018

In fact, the actual checkout order is from: pinned, installed, repo. For an unknown package, it will behave as a pin: if no version given, it is a ~dev package.
But yes, if an opam file is given, it should give that file version, not the pinned/installed one.

@rjbou
Copy link
Collaborator

rjbou commented Jul 12, 2018

cf. #3427 (comment)

@rjbou
Copy link
Collaborator

rjbou commented Jul 20, 2018

Thanks for reporting!

@rjbou
Copy link
Collaborator

rjbou commented Sep 20, 2018

New version in #3536.

@rjbou rjbou added this to the 2.0.1 milestone Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants