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 admin list, allow to output the path to the selected opam packages #6359

Open
dbuenzli opened this issue Jan 8, 2025 · 1 comment
Open

Comments

@dbuenzli
Copy link
Contributor

dbuenzli commented Jan 8, 2025

I would like to have an output option that simply output the path to the opam file of the selected package. For example:

for f in $(opam admin list --latests-only --has-tag='org:erratique');
…

Somehow I worked around by deleting all the other packages via opam admin filter and then restoring them but it's a bit silly.

@kit-ty-kate
Copy link
Member

As a quick workaround you can use the following which should work in all possible cases:

for f in $(opam admin list --latests-only --has-tag='org:erratique'); do
  f=$(find packages -path "packages/*/$f/opam" -print0)
  [...]
done

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