Skip to content

Commit 5dd9615

Browse files
authored
fix: add apple_support to create_example template (#1075)
Without this change I was getting the following error when creating new examples: ``` ERROR: /private/var/tmp/_bazel_johnflanagan/16c78d03b601ed18f3b30c014db2ef6d/external/rules_swift~~non_module_deps~build_bazel_rules_swift_local_config/BUILD:9:22: in xcode_swift_toolchain rule @@rules_swift~~non_module_deps~build_bazel_rules_swift_local_config//:toolchain: Traceback (most recent call last): File "/private/var/tmp/_bazel_johnflanagan/16c78d03b601ed18f3b30c014db2ef6d/external/rules_swift~/swift/internal/xcode_swift_toolchain.bzl", line 555, column 29, in _xcode_swift_toolchain_impl target_triples.parse(cc_toolchain.target_gnu_system_name), File "/private/var/tmp/_bazel_johnflanagan/16c78d03b601ed18f3b30c014db2ef6d/external/rules_swift~/swift/internal/target_triples.bzl", line 134, column 13, in _parse fail("Invalid target triple: {}, this likely means you're using the wrong CC toolchain, make sure you include apple_support in your project".format(triple_string)) Error in fail: Invalid target triple: local, this likely means you're using the wrong CC toolchain, make sure you include apple_support in your project ```
1 parent 571cb40 commit 5dd9615

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/create_example/template_files/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ local_path_override(
99

1010
bazel_dep(name = "cgrindel_bazel_starlib", version = "0.20.2")
1111
bazel_dep(name = "bazel_skylib", version = "1.6.1")
12+
bazel_dep(name = "apple_support", version = "1.15.1")
1213
bazel_dep(
1314
name = "rules_swift",
1415
version = "1.18.0",

0 commit comments

Comments
 (0)