Skip to content

Conversation

@AbrilRBS
Copy link
Member

@AbrilRBS AbrilRBS commented Jun 17, 2025

Changelog: Bugfix: Fix missing upgrade of config requirements in conan lock upgrade
Docs: Omit

Closes #18480

@AbrilRBS AbrilRBS added this to the 2.18.0 milestone Jun 17, 2025
@AbrilRBS AbrilRBS changed the title First sketch to solve lockfile upgrade for config requires Fix missing upgrade of config requirements in conan lock upgrade Jun 17, 2025
pass
if graph_node.conanfile.info and graph_node.conanfile.info.config_version:
for config_version in graph_node.conanfile.info.config_version._data.keys():
self._conf_requires.add(config_version.ref)
Copy link
Member

Choose a reason for hiding this comment

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

Broken self._conf_requires.add(config_version.ref)

assert json.loads(c.load("conan.lock"))["config_requires"] == ["config/1.0"]
c.run("lock remove --config-requires=config/1.0")

c.run("lock upgrade . --update-config-requires=config/1.0 -cc core.package_id:config_mode=minor_mode")
Copy link
Member

Choose a reason for hiding this comment

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

Why the config_mode=minor_mode is relevant here?

@memsharded memsharded modified the milestones: 2.18.0, 2.19.0 Jun 26, 2025
@AbrilRBS AbrilRBS modified the milestones: 2.19.0, 2.20 Jul 21, 2025
@AbrilRBS AbrilRBS modified the milestones: 2.20, 2.21 Aug 18, 2025
@memsharded memsharded modified the milestones: 2.21.0, 2.22.0 Sep 29, 2025
@memsharded memsharded modified the milestones: 2.22.0, 2.23.0 Oct 23, 2025
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.

[bug] conan lock upgrade does not upgrade config_requires

2 participants