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.
This commit is contained in:
Jon Ross-Perkins
2024-10-23 18:01:14 +00:00
committed by GitHub
parent 2e63da1a40
commit 03ddeb576b
+1 -3
View File
@@ -20,12 +20,10 @@ def _manifest(ctx):
ctx.actions.write(out, "\n".join(content) + "\n")
runfiles = ctx.runfiles(files = [out])
return [
DefaultInfo(
files = depset(direct = [out]),
data_runfiles = runfiles,
default_runfiles = runfiles,
runfiles = ctx.runfiles(files = [out]),
),
]