google / flatbuffers

FlatBuffers: Memory Efficient Serialization Library
https://flatbuffers.dev/
Apache License 2.0
22.52k stars 3.19k forks source link

[Bazel CI] Swift toolchain analysis failed due to missing 'swift' configuration fragment #8277

Open sgowroji opened 2 months ago

sgowroji commented 2 months ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-disabled/builds/2004#018eb729-049a-4b04-9bb6-282671417315

Platform: Multiple

Logs:

ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/7610754f4aaa0b605c7d15b0c0d0f401/external/build_bazel_rules_swift_local_config/BUILD:9:16: in swift_toolchain rule @@build_bazel_rules_swift_local_config//:toolchain: 
Error: There is no configuration fragment named 'swift'. Available fragments: 'platform', 'coverage', 'bazel_py', 'android', 'bazel_android', 'apple', 'cpp', 'java', 'j2objc', 'objc', 'proto', 'py'

Culprit:

Steps:

 git clone https://github.com/google/flatbuffers
git reset e040f4e9756b7310bffac491b89cdb09f9fd6362  --hard
export USE_BAZEL_VERSION=3f9d80c35d88a280c2d53682f3d201b4733a3fff
bazel build //... 

CC Greenteam @meteorcloudy

mustiikhalil commented 2 months ago

Hej,

Thanks for opening this issue. Unfortunately my knowledge with bazel is nonexistent, if you do find a fix, please open a PR to address this problem