Skip to content

Conversation

@frankslin
Copy link
Contributor

This is the latest Bazel LTS version.

@frankslin
Copy link
Contributor Author

frankslin commented Jan 18, 2026

这个 failure 是因为 runner 的网络临时有问题,可以再试一次。

ERROR: /private/var/tmp/_bazel_runner/47a8b58d56308e95d912b54f13beb41f/external/rules_python++pip+pip/pytest/BUILD.bazel:5:12: no such package '@@rules_python++pip+pip_312_pytest//': no such package '@@rules_python++internal_deps+pypi__build//': java.io.IOException: Error downloading [https://files.pythonhosted.org/packages/e2/03/f3c8ba0a6b6e30d7d18c40faab90807c9bb5e9a1e3b2fe2008af624a9c97/build-1.2.1-py3-none-any.whl] to /private/var/tmp/_bazel_runner/47a8b58d56308e95d912b54f13beb41f/external/rules_python++internal_deps+pypi__build/temp8527497470049882329/build-1.2.1-py3-none-any.whl.zip: Unknown host: files.pythonhosted.org and referenced by '@@rules_python++pip+pip//pytest:pkg'

@BYVoid
Copy link
Owner

BYVoid commented Jan 19, 2026

我不太清楚如何重試

另外,這樣的升級會導致Bazel 7.x的用戶無法使用嗎

@frankslin
Copy link
Contributor Author

.bazelversion 只有 Bazelisk 会读;Bazelisk 是事实上的标准 Bazel 启动器。

$ ll `which bazel`
... /opt/homebrew/bin/bazel -> ../Cellar/bazelisk/1.27.0/bin/bazel

当 .bazelversion 变化后,Bazelisk 在首次运行 bazel 时会下载安装新版本 Bazel 到本地。

升级 .bazelversion 版本可以让项目以 Bazel 8.x 作为构建解释器运行,从而以后有条件使用 Bazel 8.x 提供的新特性,但目前还没有使用。

This is the latest Bazel LTS version.
@danny0838
Copy link
Contributor

我不太清楚如何重試

點進失敗的 workflow 應該可以找到 re-run 的選項。

更進階的,可以在 workflow file 的 on 加上 workflow_dispatch 事件,就可以在 Actions 手動執行。

@BYVoid BYVoid merged commit a1dd4ff into BYVoid:master Jan 20, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants