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' #2580

Closed
sgowroji opened this issue Mar 28, 2024 · 2 comments · Fixed by #2602
Closed

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

sgowroji opened this issue Mar 28, 2024 · 2 comments · Fixed by #2602

Comments

@sgowroji
Copy link
Member

sgowroji commented Mar 28, 2024

CI: https://buildkite.com/bazel/bazel-at-head-plus-disabled/builds/1993#018e7e82-1a60-47b3-9288-2291a222d273

Platform: MacOS

Logs:

(07:08:36) ERROR: /Users/buildkite/builds/bk-imacpro-19/bazel-org-repo-root/rules_rust/examples/ios/BUILD.bazel:27:16: in ios_application rule //:ios_app:
Traceback (most recent call last):
	File "/private/var/tmp/_bazel_buildkite/8ae285ec1d4c65332096f0cfd7a30045/external/build_bazel_rules_apple/apple/internal/ios_rules.bzl", line 219, column 61, in _ios_application_impl
		entitlements = entitlements_support.process_entitlements(
	File "/private/var/tmp/_bazel_buildkite/8ae285ec1d4c65332096f0cfd7a30045/external/build_bazel_rules_apple/apple/internal/entitlements_support.bzl", line 308, column 26, in _process_entitlements
		content = control.to_json(),
Error: 'struct' value has no field or method 'to_json'

Culprit: bazelbuild/bazel#19465 (comment)

Steps:

 git clone https://github.com/bazelbuild/rules_rust
git reset 98fab85a713a67e804a299dfe57a02deb9790ca1  --hard
export USE_BAZEL_VERSION=53857efe918b79b38a58578b29edf8f3ba378426
bazel build //... 

CC Greenteam @mai93

@sgowroji
Copy link
Member Author

sgowroji commented Mar 28, 2024

CC @meteorcloudy @c-mita Does it require to update rules_apple ?

@c-mita
Copy link
Member

c-mita commented Mar 28, 2024

Yes, but unfortunately I don't think there's a release yet that contains bazelbuild/rules_apple#2433.

I'm not familiar with their release procedure so I don't know how long it'll be before this can be fixed.

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.

2 participants