Skip to content

Conversation

@AbrilRBS
Copy link
Member

@AbrilRBS AbrilRBS commented Oct 2, 2025

Changelog: Feature: Support compatibility plugin removal of nullable settings.
Docs: conan-io/docs#4278

While investigating for #19027, the suggested approach seems not to be documented, and after talking with the team, it seems like we would be ok with making this a feature, so this PR adds a test to cover the case where

  • You have a nullable setting, and you have packages that do not define this setting
  • You would like your recipe to depend on these packages, even when your recipe does define the setting
  • Adding this to the compatibility plugin is the better option

@AbrilRBS AbrilRBS added this to the 2.22.0 milestone Oct 2, 2025
Copy link
Member

@memsharded memsharded left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is good, and sounds it could be documented.

My concern here is the assymetry with command-line or profile-defined settings.
At the moment, it is not possible to "unset" or to define to Python None a setting that would be defined otherwise, something like:

[settings]
compiler.cppstd=20
....

mypkg/*:compiler.cppstd=@None@

Or something to explicit that nullification, otherwise None is taken literally as a string.
I think this ticket #18968 is about this

@memsharded
Copy link
Member

Proof of concept for discussion in #19035

@AbrilRBS AbrilRBS linked an issue Oct 6, 2025 that may be closed by this pull request
1 task
@memsharded memsharded merged commit 41a0c6d into conan-io:develop2 Oct 8, 2025
16 checks passed
@AbrilRBS AbrilRBS deleted the ar/test-compatibility-remove-setting branch October 8, 2025 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[question] Compatibility of packages with cppstd=None

2 participants