Skip to content

Commit eb61b99

Browse files
committed
Support legacy workspace mode for new swift_runner deps
1 parent 16ac29c commit eb61b99

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ bazel_dep(name = "platforms", version = "0.0.9")
1717
bazel_dep(name = "protobuf", version = "27.0", repo_name = "com_google_protobuf")
1818
bazel_dep(name = "nlohmann_json", version = "3.6.1", repo_name = "com_github_nlohmann_json")
1919
bazel_dep(name = "abseil-cpp", version = "20250127.0")
20-
bazel_dep(name = "re2", version = "2024-07-02")
20+
bazel_dep(name = "re2", version = "2021-09-01")
2121
bazel_dep(
2222
name = "swift_argument_parser",
2323
version = "1.3.1.2",

swift/repositories.bzl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,22 @@ def swift_rules_dependencies(include_bzlmod_ready_dependencies = True):
109109
),
110110
)
111111

112+
_maybe(
113+
http_archive,
114+
name = "abseil-cpp",
115+
urls = ["https://github.com/abseil/abseil-cpp/releases/download/20250127.0/abseil-cpp-20250127.0.tar.gz"],
116+
sha256 = "16242f394245627e508ec6bb296b433c90f8d914f73b9c026fddb905e27276e8",
117+
strip_prefix = "abseil-cpp-20250127.0",
118+
)
119+
120+
_maybe(
121+
http_archive,
122+
name = "re2",
123+
urls = ["https://github.com/google/re2/archive/2021-09-01.tar.gz"],
124+
sha256 = "42a2e1d56b5de252f5d418dc1cc0848e9e52ca22b056453988b18c6195ec7f8d",
125+
strip_prefix = "re2-2021-09-01",
126+
)
127+
112128
_maybe(
113129
http_archive,
114130
name = "com_github_apple_swift_protobuf",

0 commit comments

Comments
 (0)