1
0
Fork 0

bzl/rules.bzl: fix incompatibilities

Counteracts:

 - --incompatible_depset_is_not_iterable=false
 - --incompatible_new_actions_api=false

Change-Id: Ib0e63b717f643e4e3b57684b53d3165d5925daac
master
Serge Bazanski 2019-07-14 14:07:15 +02:00 committed by q3k
parent 838cf6526a
commit 38aea81f64
1 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
def _copy_go_binary_impl(ctx):
output = ctx.actions.declare_file(ctx.label.name)
for f in ctx.attr.src.files:
for f in ctx.attr.src.files.to_list():
# go_binary rules have two outputs, a library and the binary itself.
# The following is a horrible hack to avoid copying the library.
if f.path.endswith(".a"):
continue
ctx.action(
ctx.actions.run_shell(
inputs=[f],
outputs=[output],
mnemonic="CopyGoBinary",