bazelbuild / examples

Examples for Bazel
http://bazel.build
Apache License 2.0
804 stars 498 forks source link

Error: 'apple_common' value has no field or method 'multi_arch_split' on Bazel@HEAD #298

Closed sgowroji closed 10 months ago

sgowroji commented 11 months ago

https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3210#0189b992-af7d-44d5-ad75-6e89e0a23a55

Platform : MacOS

Logs:

ERROR: Traceback (most recent call last):
    File "/private/var/tmp/_bazel_buildkite/87ce9d05a2d4546dd5714618f7c737ea/external/build_bazel_rules_apple/apple/internal/rule_support.bzl", line 217, column 36, in <toplevel>
        deps_cfg = apple_common.multi_arch_split,
Error: 'apple_common' value has no field or method 'multi_arch_split'
(06:06:45) ERROR: Skipping '//ios-app': error loading package 'ios-app': at /private/var/tmp/_bazel_buildkite/87ce9d05a2d4546dd5714618f7c737ea/external/build_bazel_rules_apple/apple/ios.bzl:33:5: at /private/var/tmp/_bazel_buildkite/87ce9d05a2d4546dd5714618f7c737ea/external/build_bazel_rules_apple/apple/internal/ios_rules.bzl:75:5: initialization of module 'apple/internal/rule_support.bzl' failed
(06:06:45) ERROR: error loading package 'ios-app': at /private/var/tmp/_bazel_buildkite/87ce9d05a2d4546dd5714618f7c737ea/external/build_bazel_rules_apple/apple/ios.bzl:33:5: at /private/var/tmp/_bazel_buildkite/87ce9d05a2d4546dd5714618f7c737ea/external/build_bazel_rules_apple/apple/internal/ios_rules.bzl:75:5: initialization of module 'apple/internal/rule_support.bzl' failed

Steps :

git clone https://github.com/bazelbuild/examples.git  &&  cd examples
git reset ce89f49f7d693f91edce676d7de587202ae0cd66 --hard
export USE_BAZEL_VERSION=7ed631eaf2636254c12501e4c27840aa0ce430bf
cd tutorial
bazel build //backend //android //ios-app

Assuming this https://github.com/bazelbuild/bazel/commit/a76763c4125fbbea17f415a40d9efca846b0b6f0 commit have caused the breakage.

CC Greenteam @meteorcloudy

meteorcloudy commented 11 months ago

/cc @keith Can you help with this one?

keith commented 11 months ago

tracked here, fyi all repos that depend on rules_apple will be broken https://github.com/bazelbuild/rules_apple/issues/2035#issuecomment-1663943174

keith commented 10 months ago

https://github.com/bazelbuild/examples/pull/304

sgowroji commented 10 months ago

Thanks @keith