genrule(
name = "mymodifiedFOOfile",
srcs = ["foo.js"],
outs = ["foo.js"],
cmd = "sed 's/xxx/yyy/g' $< > $@",
)
filegroup(
name = "toolFooSources",
srcs = [":mymodifiedFOOfile"],
)
The error for the above is:
rule 'mymodifiedFOOfile' has file 'foo.js' as both an input and an output.
How could I reference the out file in a filegroup for example?
genrule(
name = "mymodifiedFOOfile",
srcs = ["foo.js"],
outs = ["foo.js"],
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/ccd26614-2991-481b-867c-b34074889c20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/2f48d194-d23f-49b6-b78f-85e07b994666%40googlegroups.com.