-
Notifications
You must be signed in to change notification settings - Fork 373
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
Add --keep-default-environment flag to admin list #5184
base: master
Are you sure you want to change the base?
Conversation
Add a flag which allows to keep the default environment available even if --environment is specified. Useful for overriding some parts of the default environment while keeping others.
7e0198b
to
541c3ea
Compare
Thanks for the PR. What is your usecase that need that cli flag? |
Sorry for not being quite clear about it in the initial PR. I'm the author and maintainer of a tool called |
Ok, I better understand, thanks for explanation. I'm not sure that it needs a flag addition. In fact, there is a typo in the documentation OpamArg.mk_opt ~cli OpamArg.cli_original ["environment"]
- "VAR=VALUE[;VAR=VALUE]"
+ "VAR=VALUE[,VAR=VALUE]" If we take the command
It does not resolve correctly because opam adds in the enviromnent the binding Now if we take the good syntax, it does not resolve neither
This is because
|
cf #5235 |
@rjbou Thanks! But it's still unclear to me if there's a way I can set |
What about:
|
Once again, this forces a certain |
Is there a case where nix packaged ocaml version is not in ocaml-system versions? |
No, all Nix-packaged versions are an |
Ah, i see. I thought you wanted to get the list of all installable packages for each installable ocaml version in nix. In that case what about:
|
This is a problem in case a package in the |
In that case I'm not sure to understand how |
The name is measleading. The option set the default value on variables to true, so all non defined variables with |
So if it were to be added it should be called |
Add a flag which allows to keep the default environment available even
if --environment is specified. Useful for overriding some parts of the
default environment while keeping others.
For example, this is useful when we want to figure out packages&depexts available for some OS/distribution, without removing default availability constraints. Compare: