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 formatting of the "pex.platforms is deprecated" message #20514

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

lowvoltage
Copy link
Contributor

Fixes a missing f-string formatter for the pex_binary's platforms field

Before:

16:02:15.59 [WARN] DEPRECATED: the platforms field is scheduled to be removed in version 2.22.0.dev0.
Using the platforms field in the target src/python/something_something:pex-executable. The platforms field is a hack. The abbreviated information it provides is sometimes insufficient, leading to hard-to-debug build issues. Use complete_platforms instead. See {doc_url('pex')} for details.

After:

16:03:43.09 [WARN] DEPRECATED: the platforms field is scheduled to be removed in version 2.22.0.dev0.
Using the platforms field in the target src/python/something_something:pex-executable. The platforms field is a hack. The abbreviated information it provides is sometimes insufficient, leading to hard-to-debug build issues. Use complete_platforms instead. See https://www.pantsbuild.org/v2.20/docs/pex for details.

Copy link
Contributor

@huonw huonw left a comment

Choose a reason for hiding this comment

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

Nice catch! Thank you

@huonw huonw added this to the 2.19.x milestone Feb 12, 2024
@huonw huonw added needs-cherrypick category:bugfix Bug fixes for released features labels Feb 12, 2024
@huonw huonw merged commit 3c11838 into pantsbuild:main Feb 12, 2024
24 checks passed
WorkerPants pushed a commit that referenced this pull request Feb 12, 2024
Fixes a missing f-string formatter for the `pex_binary`'s `platforms`
field

Before:
> 16:02:15.59 [WARN] DEPRECATED: the platforms field is scheduled to be
removed in version 2.22.0.dev0.
Using the `platforms` field in the target
src/python/something_something:pex-executable. The platforms field is a
hack. The abbreviated information it provides is sometimes insufficient,
leading to hard-to-debug build issues. Use complete_platforms instead.
See {doc_url('pex')} for details.

After:
> 16:03:43.09 [WARN] DEPRECATED: the platforms field is scheduled to be
removed in version 2.22.0.dev0.
Using the `platforms` field in the target
src/python/something_something:pex-executable. The platforms field is a
hack. The abbreviated information it provides is sometimes insufficient,
leading to hard-to-debug build issues. Use complete_platforms instead.
See https://www.pantsbuild.org/v2.20/docs/pex for details.
@WorkerPants
Copy link
Member

I tried to automatically cherry-pick this change back to each relevant milestone, so that it is available in those older releases of Pants.

✔️ 2.19.x

Successfully opened #20527.


Thanks again for your contributions!

🤖 Beep Boop here's my run link

huonw pushed a commit that referenced this pull request Feb 13, 2024
…ick of #20514) (#20527)

Fixes a missing f-string formatter for the `pex_binary`'s `platforms`
field

Before:
> 16:02:15.59 [WARN] DEPRECATED: the platforms field is scheduled to be
removed in version 2.22.0.dev0.
Using the `platforms` field in the target
src/python/something_something:pex-executable. The platforms field is a
hack. The abbreviated information it provides is sometimes insufficient,
leading to hard-to-debug build issues. Use complete_platforms instead.
See {doc_url('pex')} for details.

After:
> 16:03:43.09 [WARN] DEPRECATED: the platforms field is scheduled to be
removed in version 2.22.0.dev0.
Using the `platforms` field in the target
src/python/something_something:pex-executable. The platforms field is a
hack. The abbreviated information it provides is sometimes insufficient,
leading to hard-to-debug build issues. Use complete_platforms instead.
See https://www.pantsbuild.org/v2.20/docs/pex for details.

Co-authored-by: Dimitar Kovachev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants