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

Quote build_args in conan graph build-order #16594

Merged

Conversation

AbrilRBS
Copy link
Member

@AbrilRBS AbrilRBS commented Jul 3, 2024

Changelog: Fix: Quote build_args in conan graph build-order -f=json to avoid issues with options with spaces.
Changelog: Bugfix: build_args options in graph build-order now respect the context of the reference.
Docs: Omit

Closes #16593

@AbrilRBS AbrilRBS requested a review from memsharded July 3, 2024 10:11
@AbrilRBS AbrilRBS changed the base branch from develop2 to release/2.5 July 3, 2024 10:40
@AbrilRBS AbrilRBS added this to the 2.5.0 milestone Jul 3, 2024
@czoido czoido modified the milestones: 2.5.0, 2.6.0 Jul 3, 2024
@AbrilRBS AbrilRBS changed the base branch from release/2.5 to develop2 July 3, 2024 12:06
conans/model/options.py Outdated Show resolved Hide resolved
@AbrilRBS AbrilRBS marked this pull request as draft July 3, 2024 16:06
tc.run("create dep")
tc.run("graph build-order . --order-by=configuration --build=dep/1.0 -f=json", redirect_stdout="order.json")
order = json.loads(tc.load("order.json"))
assert order["order"][0][0]["build_args"] == """--requires=dep/1.0 --build=dep/1.0 -o='dep/*:extras=cxx="yes" gnuext='"'"'no'"'"'' -o='dep/*:flags=define=FOO define=BAR define=BAZ'"""
Copy link
Member Author

Choose a reason for hiding this comment

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

It's a bit suprising for me that ='no' gets quoted to ='"'"'no'"'"''

@AbrilRBS AbrilRBS modified the milestones: 2.6.0, 2.7.0 Jul 31, 2024
@memsharded memsharded modified the milestones: 2.7.0, 2.8.0 Aug 27, 2024
@AbrilRBS AbrilRBS modified the milestones: 2.8.0, 2.9.0 Sep 27, 2024
@AbrilRBS AbrilRBS marked this pull request as ready for review October 8, 2024 12:37
@AbrilRBS AbrilRBS requested a review from memsharded October 8, 2024 12:38
@czoido czoido merged commit 5957ca2 into conan-io:develop2 Oct 9, 2024
2 checks passed
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] In build-order.json, build_args is wrong when options have whitespaces
3 participants