We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With Make:
prefix ?= /usr/local
Defines that prefix will only be assigned to /usr/local if it has not already been defined.
prefix
/usr/local
There doesn't seem to be a way to achieve this here in a reasonable way
The text was updated successfully, but these errors were encountered:
that's a good idea. I think adding the 'condition' structure to env definition will resolve it and also give you a lot more choices. so you could do
[env] prefix = { value = "/usr/local", condition = { env_not_set = [ "prefix" ] } }
and naturally in condition you will have access to all condition capabilities like env value checking, file exists and so on...
Sorry, something went wrong.
Add conditional validation support for environment variables #344
a48ad4b
@mmstick just pushed a change to the 0.24.3 development branch with condition support. basically it looks like:
PREFER_EXISTING = { value = "new", condition = { env_not_set = ["PREFER_EXISTING"] } } OVERWRITE_EXISTING = { value = "new", condition = { env_set = ["OVERWRITE_EXISTING"] } }
you can see the docs and example toml file.
This is now published in the new cargo-make version.
sagiegurari
No branches or pull requests
With Make:
prefix ?= /usr/local
Defines that
prefix
will only be assigned to/usr/local
if it has not already been defined.There doesn't seem to be a way to achieve this here in a reasonable way
The text was updated successfully, but these errors were encountered: