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

feature request: access detailed version information #3675

Closed
hannesm opened this issue Nov 16, 2018 · 1 comment
Closed

feature request: access detailed version information #3675

hannesm opened this issue Nov 16, 2018 · 1 comment

Comments

@hannesm
Copy link
Member

hannesm commented Nov 16, 2018

what I would like to have: a list all transitive dependencies of a library, including version numbers.

I at the moment use opam list --installed --nobuild --rec --required-by <package> for this, which exposes the package names and their versions. For pinned packages, I'd really like to retrieve the installed commit id (see #3567 for potential issues) instead of the version name provided by opam pin (which may be dev, i.e. not very useful).

For the time being, I only use opam list --installed -s to retrieve the package name, and in a second step opam config subst which replaces {pkg:version} with the installed version number. Now, I can't seem to find a {pkg:source-hash} (or similar) which I'd like to use in case {pkg:pinned} is true.

@hannesm
Copy link
Member Author

hannesm commented Aug 2, 2023

as time evolves, the main motivation was to produce build-info (for reproducible builds / sbom) -- and that is indeed possible with opam switch export --full --freeze.. I'm closing this, since there's been no activity in > 3 years and I solved the issue at hand differently (thanks to pioneering work on orb!).

@hannesm hannesm closed this as completed Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants