-
Notifications
You must be signed in to change notification settings - Fork 368
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
Read/write issues on package config variables #4489
Comments
Additional feature request: It would be nice if configuration variables could contain variables themselves. These should then be resolved when being read. |
Additional bug: During installation, options with an empty array |
For append, as opam variables can be string, string list or bool, it doesn't suit for such operation. On variables display, we could display the same way than opam variables, ie verbatim. You'll have i this case |
Opam copies the config files of packages to
In case of a string list, it would be a suitable operation right?
That's what I'd propose as well. |
Updates from a developer meeting this morning: control of package variables is a likely feature for opam 2.3. In the meantime, there are two changes which we will slate for 2.2:
|
Documentation still need to be updated |
The following is tested on Opam
2.1.0~beta2
: Create an opam packagemy-package
, with the following config file:opam var my-package:myvar
results inhello hello world
. This is problematic because I can not distinguish separate list items from spaces in a string. One possible solution would be to return the array verbatim, or at least retain the quotes.opam var
advertises the following syntax:However, running
opam var my-package:myvar=test
returns an error:(Note also the double "in" in the error message)
opam var
supports+=
and-=
likeopam option
does.The text was updated successfully, but these errors were encountered: