From 141624e9c62a5edbafcfc1739dab5c4445a28c0f Mon Sep 17 00:00:00 2001 From: Brentley Jones Date: Mon, 21 Sep 2026 09:46:57 -0500 Subject: [PATCH] Restore feature_configuration argument to derive_swift_module_name --- doc/api.md | 3 ++- swift/module_name.bzl | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/api.md b/doc/api.md index 6aec44efa..29fd272f3 100755 --- a/doc/api.md +++ b/doc/api.md @@ -99,7 +99,7 @@ A provider whose type/layout is an implementation detail and should not ## derive_swift_module_name
-derive_swift_module_name(*args)
+derive_swift_module_name(*args, feature_configuration)
 
Returns a derived module name from the given build label. @@ -125,6 +125,7 @@ This mapping is intended to be fairly predictable, but not reversible. | Name | Description | Default Value | | :------------- | :------------- | :------------- | +| feature_configuration | Optional Swift feature configuration. Accepted for compatibility with existing callers; currently unused. | `None` | | args | Either a single argument of type `Label`, or two arguments of type `str` where the first argument is the package name and the second argument is the target name. | none | **RETURNS** diff --git a/swift/module_name.bzl b/swift/module_name.bzl index 4a7bdb7f7..575bb42ac 100644 --- a/swift/module_name.bzl +++ b/swift/module_name.bzl @@ -18,7 +18,10 @@ load("@bazel_skylib//lib:types.bzl", "types") visibility("public") -def derive_swift_module_name(*args): +def derive_swift_module_name( + *args, + # buildifier: disable=unused-variable + feature_configuration = None): """Returns a derived module name from the given build label. For targets whose module name is not explicitly specified, the module name @@ -40,6 +43,8 @@ def derive_swift_module_name(*args): *args: Either a single argument of type `Label`, or two arguments of type `str` where the first argument is the package name and the second argument is the target name. + feature_configuration: Optional Swift feature configuration. Accepted + for compatibility with existing callers; currently unused. Returns: The module name derived from the label.