-
Notifications
You must be signed in to change notification settings - Fork 40
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
Syntax for opam-repositories ? #813
Comments
It's expected to be the YAML mapping: https://yaml.org/spec/1.2.2/#nodes default: https://github.com/ocaml/opam-repository.git or default: https://github.com/ocaml/opam-repository.git
beta: https://github.com/ocaml/ocaml-beta-repository.git |
I see. Thank you. Is https://github.com/ocaml/opam-repository.git used even if not mentioned? |
Note that in README.md it is written that it is of type string, which is a little confusing (I'm not super familiar with yaml). |
Yes, it's the default opam repository.
Although it's actually technically just string, because of GHA restrictions, its actual content is the YAML mapping... |
Sorry but I still have some syntactic issue: "A mapping was not expected". What is wrong with the following?
|
Try this: - name: Install ocaml and opam
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: 4.14.0
- opam-repositories:
+ opam-repositories: |
default: https://github.com/ocaml/opam-repository.git
beta: https://github.com/ocaml/ocaml-beta-repository.git |
It works. Thank you! |
Note that, in general, you do not have to add or change the repository. Addition, the higher item has higher priority. |
Hello. Could you please describe the syntax to use for opam-repositories, and give some examples?
The text was updated successfully, but these errors were encountered: