starlark

Bazel: genrule that outputs an directory

青春壹個敷衍的年華 提交于 2020-02-24 05:49:28
问题 I'm just getting started working with Bazel. So, I apologize in advance that I haven't been able to figure this out. I'm trying to run a command that outputs a bunch of files to a directory and make this directory available for subsequent targets. I have two different attempts: Use genrule Write my own rule I was naively hoping to just do this with a genrule . But, it doesn't seem you can say "I don't know exactly what this command is going to output" and put a directory in outs . Now I'm