相关疑难解决方法(0)

Bazel: How do you get the path to a generated file?

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

14
推荐指数
2
解决办法
1万
查看次数

标签 统计

bazel ×1