rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

[Bazel CI] error evaluating module extension @@rules_go+//go:extensions.bzl%go_sdk 'Facts' value has no field or method 'clear' during SDK download.

Open satyanandak opened this issue 3 months ago • 0 comments

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/5012#0199eb35-152e-4794-b9cc-f58bb7cbcb89

Platform: Ubuntu, MacOS

Logs:

(06:10:49) ERROR: /private/var/tmp/_bazel_buildkite/6ee53a52afa88e63dd1880045aabcbf7/external/rules_go+/go/private/extensions.bzl:430:28: Traceback (most recent call last):
	File "/private/var/tmp/_bazel_buildkite/6ee53a52afa88e63dd1880045aabcbf7/external/rules_go+/go/private/extensions.bzl", line 268, column 26, in _go_sdk_impl
		_download_sdk(
	File "/private/var/tmp/_bazel_buildkite/6ee53a52afa88e63dd1880045aabcbf7/external/rules_go+/go/private/extensions.bzl", line 430, column 28, in _download_sdk
		sdks_by_version.clear()
Error: 'Facts' value has no field or method 'clear'
(06:10:49) ERROR: error evaluating module extension @@rules_go+//go:extensions.bzl%go_sdk
(06:10:49) INFO: Elapsed time: 6.730s
(06:10:49) INFO: 0 processes.
(06:10:49) ERROR: Build did NOT complete successfully
(06:10:49) FAILED:

Culprit:

Steps:

git clone https://github.com/buchgr/bazel-remote
git reset f46bc2030d3f30604d79ef4bf040e3a9c7a4ff89 --hard
export USE_BAZEL_VERSION=afd8d4bd0f0449dec1fb7a14f9e44b16cde72aaf
bazel build //:bazel-remote 

CC Greenteam @kotlaja

satyanandak avatar Oct 16 '25 10:10 satyanandak