Skip to content

Commit

Permalink
Upgrade rules_swift to latest 2.x version (#2492)
Browse files Browse the repository at this point in the history
Updating to rules_swift 2.x will be required by:

- #2418 
- #2487
  • Loading branch information
luispadron authored Jul 10, 2024
1 parent 8542626 commit f8b29d9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ bazel_dep(name = "bazel_skylib", version = "1.3.0")
bazel_dep(name = "platforms", version = "0.0.9")
bazel_dep(
name = "rules_swift",
version = "2.1.0",
max_compatibility_level = 2,
version = "2.1.1",
repo_name = "build_bazel_rules_swift",
)

Expand Down
4 changes: 2 additions & 2 deletions apple/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ def apple_rules_dependencies(ignore_version_differences = False, include_bzlmod_
_maybe(
http_archive,
name = "build_bazel_rules_swift",
sha256 = "8e0c72aa2be5ae44da44521c46e0700df184953e8dbc5d5423222b8cb141c64f",
url = "https://github.com/bazelbuild/rules_swift/releases/download/2.1.0/rules_swift.2.1.0.tar.gz",
sha256 = "9919ed1d8dae509645bfd380537ae6501528d8de971caebed6d5185b9970dc4d",
url = "https://github.com/bazelbuild/rules_swift/releases/download/2.1.1/rules_swift.2.1.1.tar.gz",
ignore_version_differences = ignore_version_differences,
)

Expand Down
2 changes: 1 addition & 1 deletion test/bazel_testrunner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ module(name = "build_bazel_rules_apple_integration_tests", version = "0")
# Specify oldest possible bzlmod versions and let rules_apple versions take precedence
bazel_dep(name = "apple_support", version = "0.11.0", repo_name = "build_bazel_apple_support")
bazel_dep(name = "rules_swift", version = "1.2.0", repo_name = "build_bazel_rules_swift", max_compatibility_level = 2)
bazel_dep(name = "rules_swift", version = "2.0.0", repo_name = "build_bazel_rules_swift")
bazel_dep(name = "rules_apple", version = "0", repo_name = "build_bazel_rules_apple")
xcode_configure = use_extension("@bazel_tools//tools/osx:xcode_configure.bzl", "xcode_configure_extension")
Expand Down

0 comments on commit f8b29d9

Please sign in to comment.