Skip to content
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

Fix/platform requires with options #15804

Merged

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Mar 4, 2024

Changelog: Fix: Avoid platform_requires to fail when explicit options are being passed via requires(.., options={}).
Docs: Omit

Close #15685

@memsharded memsharded added this to the 2.2.0 milestone Mar 4, 2024
@@ -209,7 +225,7 @@ def test_package_id_modes(self, package_id_mode):
or package_id
"""
client = TestClient()
save(client.cache.new_config_path, f"core.package_id:default_build_mode={package_id_mode}")
save(client.cache.new_config_path, f"core.package_id:default_unknown_mode={package_id_mode}")
Copy link
Member Author

Choose a reason for hiding this comment

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

This was a bit unrelated, but it was wrong, as this test was not using tool-requires

Copy link
Member

@AbrilRBS AbrilRBS left a comment

Choose a reason for hiding this comment

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

Good catch!

@czoido czoido merged commit 0083b55 into conan-io:develop2 Mar 4, 2024
2 checks passed
@memsharded memsharded deleted the fix/platform_requires_with_options branch March 4, 2024 17:19
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] "option [...] doesn't exist" when using [platform_requires]
3 participants