Skip to content

Commit ef51377

Browse files
Googlerswiple-rules-gardener
authored andcommitted
Fix swift build rules not recognizing "licenses" attribute.
PiperOrigin-RevId: 338254161
1 parent 9b9a097 commit ef51377

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

swift/internal/attrs.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ If the Swift toolchain supports implementation-only imports (`private_deps` on
4141
indirect (transitive) dependents.
4242
""",
4343
),
44+
# Deprecated, but Starlark rules do not inherit `licenses` by default
45+
# (see b/169635467).
46+
"licenses": attr.license(), # buildifier: disable=attr-license
4447
}
4548

4649
def swift_compilation_attrs(additional_deps_aspects = []):

0 commit comments

Comments
 (0)