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

More information on opam repo list or add opam repo info #5029

Open
dbuenzli opened this issue Jan 26, 2022 · 0 comments
Open

More information on opam repo list or add opam repo info #5029

dbuenzli opened this issue Jan 26, 2022 · 0 comments

Comments

@dbuenzli
Copy link
Contributor

Currently it's quite hard or impossible to know at which commit an opam repository is. I think opam repo list:

> opam repo list     
[NOTE] These are the repositories in use by the current switch. Use '--all' to see all configured repositories.

<><> Repository configuration for switch 4.13.0 <><><><><><><><><><><><><><><><>
 1 beta     git+https://github.com/ocaml/ocaml-beta-repository.git
 2 ocamlnat git+https://github.com/dbuenzli/opam-repo-ocamlnat.git
 3 default  https://opam.ocaml.org/

could add a column after the name with the short hash at which the repo is. For now the only place I could find the information is in opam config report and only for the default repository:

> opam config report | grep repositories 
# repositories         1 (http), 1 (local), 2 (version-controlled) (default repo at b3f8647a)

Alternatively if there's more useful information about a repo one might want to know maybe an opam repo info command could be warranted.

Thanks.

/cc @kit-ty-kate

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