Skip to content

Commit 9539cbb

Browse files
committed
[signing] Allow offline_signature_attach to accept DefaultInfo
Allow `offline_signature_attach` to accept files provided by `DefaultInfo`. This allows the rule to accept `srcs` that are provided by a filegroup in addition to files provied by `presigning_artifacts`. Signed-off-by: Chris Frantz <cfrantz@google.com>
1 parent bb75c90 commit 9539cbb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rules/signing.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ def _offline_signature_attach(ctx):
660660
offline_signature_attach = rule(
661661
implementation = _offline_signature_attach,
662662
attrs = {
663-
"srcs": attr.label_list(allow_files = True, providers = [PreSigningBinaryInfo], doc = "Binary files to sign"),
663+
"srcs": attr.label_list(allow_files = True, providers = [[PreSigningBinaryInfo], [DefaultInfo]], doc = "Binary files to sign"),
664664
"ecdsa_signatures": attr.label_list(allow_files = True, doc = "ECDSA signed digest files"),
665665
"rsa_signatures": attr.label_list(allow_files = True, doc = "RSA signed digest files"),
666666
"spx_signatures": attr.label_list(allow_files = True, doc = "SPX+ signed digest files"),

0 commit comments

Comments
 (0)