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 monorepo lock fails to parse git repos #334

Closed
RyanGibb opened this issue Sep 22, 2022 · 6 comments
Closed

opam monorepo lock fails to parse git repos #334

RyanGibb opened this issue Sep 22, 2022 · 6 comments

Comments

@RyanGibb
Copy link

~/projects/opam-monorepo/_build/default/bin/opam_monorepo.exe lock hello-unix --opam-repositories '[git+https://github.com/ocaml/opam-repositories]'
==> Using 1 locally scanned package as the target.
opam_monorepo.exe: [ERROR] Only non git, local filesystem URLs (file://) are supported at the moment
@Leonidas-from-XIV
Copy link
Member

It's merged but not released yet.

@RyanGibb
Copy link
Author

Gah I was using the wrong branch! You're absolutely right.

Strangely it prompts for my GitHub credentials (and fails to authenticate with them) when using the most recent branch though.

@Leonidas-from-XIV
Copy link
Member

That's odd! Are you sure the repo you're trying to use is public? Or try the SSH URI?

@RyanGibb
Copy link
Author

Ah it's user error again 😭 I keep making the same typo because in doc/lock.mld https://github.com/ocaml/opam-repositories is used where I think it should be https://github.com/ocaml/opam-repository!

@Leonidas-from-XIV
Copy link
Member

Leonidas-from-XIV commented Sep 22, 2022

Oh, that's a good catch! If you have a moment, could you submit a PR please? It might be user error but it certainly is also a documentation error 😅

@RyanGibb
Copy link
Author

Done!

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

No branches or pull requests

2 participants