mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Bazel: fix _zipmerge rule
This commit is contained in:
@@ -231,12 +231,12 @@ def _zipmerge_impl(ctx):
|
|||||||
]
|
]
|
||||||
zips.append(zip)
|
zips.append(zip)
|
||||||
else:
|
else:
|
||||||
zips = zip_target.files.to_list()
|
zip_files = zip_target.files.to_list()
|
||||||
for zip in zips:
|
for zip in zip_files:
|
||||||
if zip.extension != "zip":
|
if zip.extension != "zip":
|
||||||
fail("%s file found while expecting a .zip file " % zip.short_path)
|
fail("%s file found while expecting a .zip file " % zip.short_path)
|
||||||
args.append("--prefix=%s" % ctx.attr.prefix)
|
args.append("--prefix=%s" % ctx.attr.prefix)
|
||||||
args += [z.path for z in zips]
|
args += [z.path for z in zip_files]
|
||||||
transitive_zips.append(zip_target.files)
|
transitive_zips.append(zip_target.files)
|
||||||
ctx.actions.run(
|
ctx.actions.run(
|
||||||
outputs = [output],
|
outputs = [output],
|
||||||
|
|||||||
Reference in New Issue
Block a user