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

Flag --incompatible_disable_starlark_host_transitions will break rules_scala in Bazel 7.0 #1461

Closed
mai93 opened this issue Jan 10, 2023 · 1 comment · Fixed by #1462
Closed

Comments

@mai93
Copy link
Contributor

mai93 commented Jan 10, 2023

Flipping this incompatible flag is failing for the Bazel IntelliJ plugin project because of its dependency on rules_scala. The error is:

ERROR: Traceback (most recent call last):
	File "_/external/io_bazel_rules_scala/scala/private/common_attributes.bzl", line 71, column 56, in <toplevel>
		"_code_coverage_instrumentation_worker": attr.label(
Error in label: 'cfg = "host"' is deprecated and should no longer be used. Please use 'cfg = "exec"' instead.
ERROR: Error computing the main repository mapping: at _/external/io_bazel_rules_scala/scala/scala.bzl:34:5: at _/external/io_bazel_rules_scala/scala/private/rules/scala_test.bzl:5:5: initialization of module 'scala/private/common_attributes.bzl' failed

The flag is documented here: bazelbuild/bazel#17032.

More details and references listed here: bazelbuild/intellij#4211

@liucijus
Copy link
Collaborator

Thanks, @mai93, for reminding!

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