Bazel商店在哪里获取包裹?
在我的workspace
文件中,我已经定义了一个http_archive,例如
http_archive(
name = "awscli_zip",
urls = [
"https://awscli.amazonaws.com/awscli-exe-linux-x86_64-{version}.zip".format(version = awscli_version)
],
sha256 = awscli_sha256,
build_file = "//third_party:BUILD.awscli",
)
我现在正在运行bazel clean& amp; bazel fetch @awscli_zip //... 它获取1个软件包,如下所示:
INFO: All external dependencies fetched successfully.
Loading: 1 packages loaded
当我查看workspace
文件所在的目录时,通常Bazel通常提供多个bazel - *
我可以在其中检查最后一个构建/测试的文件。我认为Bazel还在那里存储了收集的软件包。不幸的是,没有创建此类目录。
那么,如果不在Bazel输出目录中,Bazel Store到底在哪里获取软件包?
In my WORKSPACE
file I have defined a http_archive like
http_archive(
name = "awscli_zip",
urls = [
"https://awscli.amazonaws.com/awscli-exe-linux-x86_64-{version}.zip".format(version = awscli_version)
],
sha256 = awscli_sha256,
build_file = "//third_party:BUILD.awscli",
)
When I am now running bazel clean && bazel fetch @awscli_zip//...
it fetches 1 package as seen here:
INFO: All external dependencies fetched successfully.
Loading: 1 packages loaded
When I am looking into the directory where the WORKSPACE
file is located, usually bazel provides multiple bazel-*
files where I can inspect the last build/test. I would assume that bazel also stores fetched packages there. Unfortunately no such directories are created.
So where exactly does bazel store fetched packages if not in the bazel output directories?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅
$(Bazel Info Upput_Base)/外部
。(众所周知,工作空间根中的
bazel-*
symlinks仅在构建或测试命令上创建。)See
$(bazel info output_base)/external
.(The "convenience symlinks", as the
bazel-*
symlinks in the workspace root as are known, are only created on build or test commands.)