Unconditionally use runfiles.merge_all in write_source_file
This commit is contained in:
parent
5077d5ae4a
commit
a4f99946c6
|
@ -340,12 +340,9 @@ def _write_source_file_impl(ctx):
|
||||||
files = runfiles,
|
files = runfiles,
|
||||||
transitive_files = ctx.attr.in_file.files if ctx.attr.in_file else None,
|
transitive_files = ctx.attr.in_file.files if ctx.attr.in_file else None,
|
||||||
)
|
)
|
||||||
deps_runfiles = [dep[DefaultInfo].default_runfiles for dep in ctx.attr.additional_update_targets]
|
runfiles = runfiles.merge_all(
|
||||||
if "merge_all" in dir(runfiles):
|
[dep[DefaultInfo].default_runfiles for dep in ctx.attr.additional_update_targets],
|
||||||
runfiles = runfiles.merge_all(deps_runfiles)
|
)
|
||||||
else:
|
|
||||||
for dep in deps_runfiles:
|
|
||||||
runfiles = runfiles.merge(dep)
|
|
||||||
|
|
||||||
return [
|
return [
|
||||||
DefaultInfo(
|
DefaultInfo(
|
||||||
|
|
Loading…
Reference in New Issue