bazel-contrib / rules_jvm_external

Bazel rules to resolve, fetch and export Maven artifacts
Apache License 2.0
336 stars 256 forks source link

Flag --incompatible_disable_starlark_host_transitions will break rules_jvm_external in Bazel 7.0 #809

Open keertk opened 1 year ago

keertk commented 1 year ago

Incompatible flag --incompatible_disable_starlark_host_transitions will be enabled by default in the next major release (Bazel 7.0), thus breaking rules_jvm_external. Please migrate to fix this and unblock the flip of this flag.

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

Please check the following CI builds for build and test results:

Never heard of incompatible flags before? We have documentation that explains everything. If you have any questions, please file an issue in https://github.com/bazelbuild/continuous-integration.

sgowroji commented 1 year ago

Hi Team, Gentle ping , Can you share any significant update on this issue. Thanks!

shs96c commented 1 year ago

The linked builds are shown to be passing. I'm not sure what the problem is. Could you please link to a recent failed build, against the current version of rules_jvm_external?

sgowroji commented 1 year ago

Please find the CI details https://buildkite.com/bazel/bazelisk-plus-incompatible-flags/builds/1556#0188d12d-76ef-4e85-aa33-09ea8aa5d30f

Error Logs:

ERROR: Traceback (most recent call last):
    File "/private/var/tmp/_bazel_buildkite/19d416c8d9715b97a454c94180552595/external/com_google_protobuf/protobuf.bzl", line 186, column 29, in <toplevel>
        "protoc": attr.label(
Error in label: 'cfg = "host"' is deprecated and should no longer be used. Please use 'cfg = "exec"' instead.
(03:09:14) ERROR: /private/var/tmp/_bazel_buildkite/19d416c8d9715b97a454c94180552595/external/maven/BUILD:41:6: error loading package '@com_google_protobuf//': initialization of module 'protobuf.bzl' failed and referenced by '@maven//:com_google_protobuf_protobuf_java'
sgowroji commented 1 year ago

Hi @shs96c, Did you get a chance to check the error logs mentioned here