Skip to content

Commit

Permalink
Switch to swift-syntax through bzlmod (#5222)
Browse files Browse the repository at this point in the history
  • Loading branch information
keith authored Sep 15, 2023
1 parent add15d0 commit 347af1c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,17 @@ module(
repo_name = "SwiftLint",
)

bazel_dep(name = "bazel_skylib", version = "1.4.1", dev_dependency = True)
bazel_dep(name = "platforms", version = "0.0.6")
bazel_dep(name = "rules_apple", version = "2.4.1", repo_name = "build_bazel_rules_apple")
bazel_dep(name = "rules_swift", version = "1.9.1", repo_name = "build_bazel_rules_swift")
bazel_dep(name = "sourcekitten", version = "0.34.1", repo_name = "com_github_jpsim_sourcekitten")
bazel_dep(name = "swift_argument_parser", version = "1.2.1", repo_name = "sourcekitten_com_github_apple_swift_argument_parser")
bazel_dep(name = "yams", version = "5.0.6", repo_name = "sourcekitten_com_github_jpsim_yams")
bazel_dep(name = "swift-syntax", version = "509.0.0", repo_name = "SwiftSyntax")

swiftlint_repos = use_extension("//bazel:repos.bzl", "swiftlint_repos_bzlmod")
use_repo(
swiftlint_repos,
"SwiftSyntax",
"com_github_johnsundell_collectionconcurrencykit",
"com_github_krzyzanowskim_cryptoswift",
"swiftlint_com_github_scottrhoyt_swifty_text_table",
Expand All @@ -27,4 +26,5 @@ use_repo(extra_rules, "swiftlint_extra_rules")

# Dev Dependencies

bazel_dep(name = "bazel_skylib", version = "1.4.1", dev_dependency = True)
bazel_dep(name = "rules_xcodeproj", version = "1.7.1", dev_dependency = True)
14 changes: 7 additions & 7 deletions bazel/repos.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ def swiftlint_repos(bzlmod = False):
url = "https://github.com/jpsim/SourceKitten/releases/download/0.34.1/SourceKitten-0.34.1.tar.gz",
)

http_archive(
name = "SwiftSyntax",
sha256 = "1cddda9f7d249612e3d75d4caa8fd9534c0621b8a890a7d7524a4689bce644f1",
strip_prefix = "swift-syntax-509.0.0",
url = "https://github.com/apple/swift-syntax/archive/refs/tags/509.0.0.tar.gz",
)

http_archive(
name = "swiftlint_com_github_scottrhoyt_swifty_text_table",
sha256 = "b77d403db9f33686caeb2a12986997fb02a0819e029e669c6b9554617c4fd6ae",
Expand All @@ -18,13 +25,6 @@ def swiftlint_repos(bzlmod = False):
url = "https://github.com/scottrhoyt/SwiftyTextTable/archive/refs/tags/0.9.0.tar.gz",
)

http_archive(
name = "SwiftSyntax",
sha256 = "1cddda9f7d249612e3d75d4caa8fd9534c0621b8a890a7d7524a4689bce644f1",
strip_prefix = "swift-syntax-509.0.0",
url = "https://github.com/apple/swift-syntax/archive/refs/tags/509.0.0.tar.gz",
)

http_archive(
name = "com_github_johnsundell_collectionconcurrencykit",
sha256 = "9083fe6f8b4f820bfb5ef5c555b31953116f158ec113e94c6406686e78da34aa",
Expand Down

0 comments on commit 347af1c

Please sign in to comment.