Skip to content

Commit 3c11838

Browse files
authored
Fix formatting of the "pex.platforms is deprecated" message (#20514)
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.
1 parent 1d1e93e commit 3c11838

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/python/pants/backend/python/target_types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ class PexPlatformsField(StringSequenceField):
455455
alias = "platforms"
456456
removal_version = "2.22.0.dev0"
457457
removal_hint = softwrap(
458-
"""\
458+
f"""\
459459
The platforms field is a hack. The abbreviated information it provides is sometimes insufficient,
460460
leading to hard-to-debug build issues. Use complete_platforms instead.
461461
See {doc_url('pex')} for details.

0 commit comments

Comments
 (0)