allow nullifying settings from profiles and command line#19035
allow nullifying settings from profiles and command line#19035czoido merged 3 commits intoconan-io:develop2from
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.