Skip to content

Commit 03ddeb5

Browse files
authored
Fix use of runfiles (#4440)
I was looking at the documentation again, and I realized that while this works, I think the intention is that `runfiles` is set _instead_ of both fields (I was a little confused by the error I was getting when setting `runfiles` _with_ `default_runfiles`) I believe I've verified this works in necessary situations.
1 parent 2e63da1 commit 03ddeb5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bazel/manifest/defs.bzl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@ def _manifest(ctx):
2020

2121
ctx.actions.write(out, "\n".join(content) + "\n")
2222

23-
runfiles = ctx.runfiles(files = [out])
2423
return [
2524
DefaultInfo(
2625
files = depset(direct = [out]),
27-
data_runfiles = runfiles,
28-
default_runfiles = runfiles,
26+
runfiles = ctx.runfiles(files = [out]),
2927
),
3028
]
3129

0 commit comments

Comments
 (0)