diff --git a/docs/notes/2.23.x.md b/docs/notes/2.23.x.md index a34e2fbd33f..393a4c38e2d 100644 --- a/docs/notes/2.23.x.md +++ b/docs/notes/2.23.x.md @@ -117,7 +117,9 @@ The "Provided by" information in the documentation now correctly reflects the pr ### New call-by-name syntax for @rules -Pants has a new mechanism for `@rule` invocation in backends. In this release the `cc` backend was migrated to use this new mechanism. There should not be any user-visible effects, but please be on the lookout for any unusual bugs or error messages. +Pants has a new mechanism for `@rule` invocation in backends. In this release the following backends were migrated to use this new mechanism. There should not be any user-visible effects, but please be on the lookout for any unusual bugs or error messages. +- `cc` +- `swift` ## Full Changelog diff --git a/src/python/pants/backend/swift/goals/tailor.py b/src/python/pants/backend/swift/goals/tailor.py index 17b6aafcf32..3905d7cddf5 100644 --- a/src/python/pants/backend/swift/goals/tailor.py +++ b/src/python/pants/backend/swift/goals/tailor.py @@ -13,8 +13,7 @@ PutativeTargets, PutativeTargetsRequest, ) -from pants.engine.fs import PathGlobs, Paths -from pants.engine.internals.selectors import Get +from pants.engine.intrinsics import path_globs_to_paths from pants.engine.rules import Rule, collect_rules, rule from pants.engine.target import Target from pants.engine.unions import UnionRule @@ -38,8 +37,8 @@ async def find_putative_targets( req: PutativeSwiftTargetsRequest, all_owned_sources: AllOwnedSources, ) -> PutativeTargets: - all_swift_files = await Get( - Paths, PathGlobs, req.path_globs(*(f"*{ext}" for ext in SWIFT_FILE_EXTENSIONS)) + all_swift_files = await path_globs_to_paths( + req.path_globs(*(f"*{ext}" for ext in SWIFT_FILE_EXTENSIONS)) ) unowned_swift_files = set(all_swift_files.files) - set(all_owned_sources) classified_unowned_swift_files = classify_source_files(unowned_swift_files)