Parcourir la source

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.
Jon Ross-Perkins il y a 1 an
Parent
commit
03ddeb576b
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      bazel/manifest/defs.bzl

+ 1 - 3
bazel/manifest/defs.bzl

@@ -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]),
         ),
     ]