Skip to content

fix global_conf composition with profiles#18028

Merged
czoido merged 1 commit intoconan-io:develop2from
memsharded:fix/rebase_conf_definition
Mar 27, 2025
Merged

fix global_conf composition with profiles#18028
czoido merged 1 commit intoconan-io:develop2from
memsharded:fix/rebase_conf_definition

Conversation

@memsharded
Copy link
Member

Changelog: Bugfix: Fix global.conf precedence over profiles [conf] and order change of per-package pattern confs.
Docs: Omit

Close #13439

self._pattern_confs[pattern] = conf

def rebase_conf_definition(self, other):
def rebase_conf_definition(self, global_conf):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that using global_conf is a bit confusing. I prefer other instead. It's true that it will normally be the global_conf but itself is other ConfDefinition.

Copy link
Member Author

Choose a reason for hiding this comment

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

I wanted to clearly define here that the only usage of this method is to be used for global_conf, for a very niche use-case. I have almost removed the rebase_conf_definition() and create a different name, or with a different scope, so it is only applied for global.conf when it has to be applied for it, because it is a bit confusing to have so many update_conf, compose_conf and rebase_conf methods.

@czoido czoido merged commit 4d505c0 into conan-io:develop2 Mar 27, 2025
15 checks passed
@memsharded memsharded deleted the fix/rebase_conf_definition branch March 27, 2025 12:59
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] How to disable search of dependency's test binary packages

3 participants