-
Notifications
You must be signed in to change notification settings - Fork 1.1k
allow nullifying settings from profiles and command line #19035
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
allow nullifying settings from profiles and command line #19035
Conversation
|
what if a setting needs a literal |
Well, then that would be as NO = Norway.... |
I don't have a case where it was truly necessary, but I was looking for this the other day (before deciding conan2 had no way to do this anymore, and doing some re-design). The scenario was tri-state In this pattern, Often, then, When I first set things up like this, I observed that you could set test_foo in several different ways, with the hierarchy command-line > profile > default_options, and that conan1 put different values in self.options.test_fo for omitted entirely, vs defaulted and then explicitly overridden back to None. So my Jenkinsfile did have tests with the explicit In porting that test_package and CI pipeline to conan2, I couldn't find any way to pass an explicit But, short story long, that's place in which I was recently looking for the equivalent of doing |
Changelog: Feature: Allow nullifying settings from profiles and command line.
Docs: conan-io/docs#4285
Close #18968
Related to #19031
We have agreed to use the already existing negation syntax
~as value.At the moment we will not implement the same for options, as options are already per-package, we didn't find a case for it, so we will better wait for users requests for it.