Skip to content

Commit

Permalink
Update to rules_swift 2.0.0
Browse files Browse the repository at this point in the history
Updates the **rules_swift** dependency to 2.0.0. This unblocks the new rules/aspects in other planned PRs
  • Loading branch information
luispadron committed Jul 3, 2024
1 parent 42fb193 commit c1b44bf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +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 = "1.18.0",
version = "2.0.0",
max_compatibility_level = 2,
repo_name = "build_bazel_rules_swift",
)
Expand Down
1 change: 1 addition & 0 deletions apple/internal/framework_import_support.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ def _swift_info_from_module_interface(
swiftinterface_file = swiftinterface_file,
swift_infos = swift_infos,
swift_toolchain = swift_toolchain,
target_name = ctx.label.name,
)

return swift_common.create_swift_info(
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 = "bb01097c7c7a1407f8ad49a1a0b1960655cf823c26ad2782d0b7d15b323838e2",
url = "https://github.com/bazelbuild/rules_swift/releases/download/1.18.0/rules_swift.1.18.0.tar.gz",
sha256 = "32eeb4ef33c708d9c9a4ee0fa8475322ef149dabc81884ddc3b50eb2efff7843",
url = "https://github.com/bazelbuild/rules_swift/releases/download/2.0.0/rules_swift.2.0.0.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")
bazel_dep(name = "rules_swift", version = "1.2.0", repo_name = "build_bazel_rules_swift", max_compatibility_level = 2)
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 c1b44bf

Please sign in to comment.