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

question / feature request: an opam command to set archive-mirrors field #5316

Closed
hannesm opened this issue Oct 14, 2022 · 1 comment · Fixed by #5321
Closed

question / feature request: an opam command to set archive-mirrors field #5316

hannesm opened this issue Oct 14, 2022 · 1 comment · Fixed by #5321
Projects
Milestone

Comments

@hannesm
Copy link
Member

hannesm commented Oct 14, 2022

Of course, I can manually edit ~/.opam/config, but it would be great (avoiding typos, etc.) if I could use opam config set jobs 10 (or opam config set archive-mirrors http://my-local-mirror) and also unset these again.

As far as I can tell, the opam config set and opam config set-global are only about variables, not about the data stored in the config file.

@hannesm hannesm changed the title question / feature request: an opam command to set global variables question / feature request: an opam command to set global configuration options Oct 14, 2022
@hannesm
Copy link
Member Author

hannesm commented Oct 16, 2022

opam option --global archive-mirrors it is (for get), and with #5315 it is settable as well (~/mirage/opam/_build/default/src/client/opamMain.exe option --global archive-mirrors='["https://opam.ocaml.org/cache"]')

@rjbou rjbou changed the title question / feature request: an opam command to set global configuration options question / feature request: an opam command to set archive-mirrors field Oct 19, 2022
@rjbou rjbou added this to the 2.2.0~alpha milestone Oct 21, 2022
@rjbou rjbou added this to To do in Opam 2.2.0 via automation Oct 21, 2022
@rjbou rjbou moved this from To do to Done in Opam 2.2.0 Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Opam 2.2.0
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants