Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bazel CI] Error: 'struct' value has no field or method 'to_json' #1080

Open
sgowroji opened this issue Mar 21, 2024 · 1 comment
Open

[Bazel CI] Error: 'struct' value has no field or method 'to_json' #1080

sgowroji opened this issue Mar 21, 2024 · 1 comment

Comments

@sgowroji
Copy link
Member

sgowroji commented Mar 21, 2024

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3740#018e5f2f-8012-4d03-a482-1b81bc57c860

Platform: Ubuntu

Logs:

ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f4869dab816286661a26d778dac20444/external/io_bazel_rules_scala/third_party/dependency_analyzer/src/main/BUILD:3:9: in scala_library_for_plugin_bootstrapping rule @@io_bazel_rules_scala//third_party/dependency_analyzer/src/main:scala_version:
Traceback (most recent call last):
	File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f4869dab816286661a26d778dac20444/external/io_bazel_rules_scala/scala/private/rules/scala_library.bzl", line 142, column 22, in _scala_library_for_plugin_bootstrapping_impl
		return run_phases(
	File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f4869dab816286661a26d778dac20444/external/io_bazel_rules_scala/scala/private/phases/api.bzl", line 45, column 23, in run_phases
		return _run_phases(ctx, builtin_customizable_phases, target = None)
	File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f4869dab816286661a26d778dac20444/external/io_bazel_rules_scala/scala/private/phases/api.bzl", line 77, column 32, in _run_phases
		new_provider = function(ctx, current_provider)
	File "/var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/f4869dab816286661a26d778dac20444/external/io_bazel_rules_scala/scala/private/phases/phase_default_info.bzl", line 20, column 23, in phase_default_info
		phase_names.remove("to_json")
Error in remove: item "to_json" not found in list

Culprit: bazelbuild/bazel@8f18d36

Steps:

git clone https://github.com/bazelbuild/rules_jvm_external
git reset 7ba59df6afa05c9e2d9356e1adb99f016a7c01eb  --hard
export USE_BAZEL_VERSION=b100e4f1631da2d7c78621c040e88b7644985cd8
bazel build //... 

CC Greenteam @SalmaSamy

@sgowroji
Copy link
Member Author

sgowroji commented Mar 21, 2024

CC @c-mita Can you take a look on the above failures.

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 a pull request may close this issue.

1 participant