Skip to content

Commit

Permalink
Add explicit platforms dependency
Browse files Browse the repository at this point in the history
We use this now for cc_toolchain_forwarder
  • Loading branch information
keith committed Aug 11, 2023
1 parent 5926b99 commit 28a5e68
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ module(
repo_name = "build_bazel_rules_apple",
)

bazel_dep(name = "bazel_skylib", version = "1.3.0")
bazel_dep(name = "apple_support", version = "1.7.1", repo_name = "build_bazel_apple_support")
bazel_dep(name = "bazel_skylib", version = "1.3.0")
bazel_dep(name = "platforms", version = "0.0.7")
bazel_dep(name = "rules_swift", version = "1.9.1", repo_name = "build_bazel_rules_swift")

non_module_deps = use_extension("//apple:extensions.bzl", "non_module_deps")
Expand Down
10 changes: 10 additions & 0 deletions apple/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,16 @@ def apple_rules_dependencies(ignore_version_differences = False, include_bzlmod_
ignore_version_differences = ignore_version_differences,
)

_maybe(
http_archive,
name = "platforms",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz",
"https://github.com/bazelbuild/platforms/releases/download/0.0.7/platforms-0.0.7.tar.gz",
],
sha256 = "3a561c99e7bdbe9173aa653fd579fe849f1d8d67395780ab4770b1f381431d51",
)

_maybe(
http_archive,
name = "xctestrunner",
Expand Down

0 comments on commit 28a5e68

Please sign in to comment.