In Bazel, given a build target, how would a script (which is running outside of Bazel) get the path to the generated file?
Scenario: I'm using Bazel to do the build, and then when it's done, I want to copy the result to a server. I just need to know what files to copy. I could hard-code the list of files, but I would prefer not to do that.
A simple example: This Bazel script:
genrule(
name = "main",
srcs …Run Code Online (Sandbox Code Playgroud) bazel ×1