@@ -147,7 +147,10 @@ _imported_zips_manifest = rule(
147
147
{CODEQL_PLATFORM} can be used as zip prefixes and will be expanded to the relevant codeql platform.
148
148
""" ,
149
149
attrs = {
150
- "zips" : attr .label_keyed_string_dict (doc = "mapping from zip files to install prefixes" , allow_files = True ),
150
+ "zips" : attr .label_keyed_string_dict (
151
+ doc = "mapping from zip files to install prefixes" ,
152
+ allow_files = [".zip" ],
153
+ ),
151
154
} | _PLAT_DETECTION_ATTRS ,
152
155
)
153
156
@@ -189,9 +192,12 @@ _zipmerge = rule(
189
192
attrs = {
190
193
"base" : attr .label (
191
194
doc = "Base zip file to which zips from `zips` will be merged with" ,
192
- allow_single_file = True ,
195
+ allow_single_file = [".zip" ],
196
+ ),
197
+ "zips" : attr .label_keyed_string_dict (
198
+ doc = "mapping from zip files to install prefixes" ,
199
+ allow_files = [".zip" ],
193
200
),
194
- "zips" : attr .label_keyed_string_dict (doc = "mapping from zip files to install prefixes" , allow_files = True ),
195
201
"zip_name" : attr .string (doc = "Prefix to use for the output file name" ),
196
202
"kind" : attr .string (doc = "Which zip kind to consider" , values = ["generic" , "arch" ]),
197
203
"zip_prefix" : attr .string (doc = "Prefix posix path to add to the zip contents in the archive" ),
0 commit comments