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

Update internal repos-config file format #6327

Open
rjbou opened this issue Dec 6, 2024 · 0 comments
Open

Update internal repos-config file format #6327

rjbou opened this issue Dec 6, 2024 · 0 comments

Comments

@rjbou
Copy link
Collaborator

rjbou commented Dec 6, 2024

At the moment, repos-config file list repositories with optional fields:
repositories: [ <string> <URL> { {<string>}+ } { <int> } ... ]. The last two optional arguments for each repository are the trust anchors (fingerprints of the trusted signing identities, and the quorum, i.e. how many of them are required for a signature to be accepted (see manual.
We need to add some information per repository (see #4933, #5966), that are optional too, and handling these list of optional elements is not the best, even if the file is not meant to be read by a human.

Proposal: use one section per repository, we would have

repo "default" {
  url: "https://opam.ocaml.org"
}
repo "local" {
  url: "git+file:///home/user/opam-repo"
  another-prop: ...
}
repo "another" {
  url: "git+https://..."
  quorum: 2
  fingerprints: "..."
}

Like that we have each repository have its own properties well defined.

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

1 participant