Skip to content

Commit

Permalink
Update Bazel and SPM dependencies (#5563)
Browse files Browse the repository at this point in the history
SourceKitten 0.35.0
Swift Argument Parser 1.3.1
SwiftSyntax 510.0.2
  • Loading branch information
SimplyDanny committed May 9, 2024
1 parent 6834393 commit 0a2878d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 15 deletions.
6 changes: 3 additions & 3 deletions MODULE.bazel
Expand Up @@ -10,9 +10,9 @@ bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "platforms", version = "0.0.8")
bazel_dep(name = "rules_apple", version = "3.1.1", repo_name = "build_bazel_rules_apple")
bazel_dep(name = "rules_swift", version = "1.16.0", repo_name = "build_bazel_rules_swift")
bazel_dep(name = "sourcekitten", version = "0.34.1", repo_name = "com_github_jpsim_sourcekitten")
bazel_dep(name = "swift-syntax", version = "510.0.0", repo_name = "SwiftSyntax")
bazel_dep(name = "swift_argument_parser", version = "1.2.1", repo_name = "sourcekitten_com_github_apple_swift_argument_parser")
bazel_dep(name = "sourcekitten", version = "0.35.0", repo_name = "com_github_jpsim_sourcekitten")
bazel_dep(name = "swift-syntax", version = "510.0.2", repo_name = "SwiftSyntax")
bazel_dep(name = "swift_argument_parser", version = "1.3.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")

swiftlint_repos = use_extension("//bazel:repos.bzl", "swiftlint_repos_bzlmod")
Expand Down
4 changes: 2 additions & 2 deletions Package.resolved
Expand Up @@ -41,8 +41,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-syntax.git",
"state" : {
"revision" : "08a2f0a9a30e0f705f79c9cfaca1f68b71bdc775",
"version" : "510.0.0"
"revision" : "303e5c5c36d6a558407d364878df131c3546fad8",
"version" : "510.0.2"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Expand Up @@ -24,7 +24,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.1"),
.package(url: "https://github.com/apple/swift-syntax.git", exact: "510.0.0"),
.package(url: "https://github.com/apple/swift-syntax.git", exact: "510.0.2"),
.package(url: "https://github.com/jpsim/SourceKitten.git", .upToNextMinor(from: "0.35.0")),
.package(url: "https://github.com/jpsim/Yams.git", from: "5.0.6"),
.package(url: "https://github.com/scottrhoyt/SwiftyTextTable.git", from: "0.9.0"),
Expand Down
3 changes: 0 additions & 3 deletions bazel/deps.bzl
@@ -1,5 +1,4 @@
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load("@com_github_jpsim_sourcekitten//bazel:repos.bzl", "sourcekitten_repos")

def _extra_swift_sources_impl(ctx):
ctx.file("WORKSPACE", "")
Expand Down Expand Up @@ -36,5 +35,3 @@ def swiftlint_deps():

if not native.existing_rule("swiftlint_extra_rules"):
extra_swift_sources(name = "swiftlint_extra_rules")

sourcekitten_repos()
12 changes: 6 additions & 6 deletions bazel/repos.bzl
Expand Up @@ -5,16 +5,16 @@ def swiftlint_repos(bzlmod = False):
if not bzlmod:
http_archive(
name = "com_github_jpsim_sourcekitten",
sha256 = "fcc5ea783e6a0b58b3873c3d551c0ff7a146fdd536e66e1d37af13b1f52df3d4",
strip_prefix = "SourceKitten-0.34.1",
url = "https://github.com/jpsim/SourceKitten/releases/download/0.34.1/SourceKitten-0.34.1.tar.gz",
sha256 = "d9c559166f01627826505b0e655b56a59f86938389e1739259e6ce49c9fd95f0",
strip_prefix = "SourceKitten-0.35.0",
url = "https://github.com/jpsim/SourceKitten/releases/download/0.35.0/SourceKitten-0.35.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",
sha256 = "6572f60ca3c75c2a40f8ccec98c5cd0d3994599a39402d69b433381aaf2c1712",
strip_prefix = "swift-syntax-510.0.2",
url = "https://github.com/apple/swift-syntax/archive/refs/tags/510.0.2.tar.gz",
)

http_archive(
Expand Down

0 comments on commit 0a2878d

Please sign in to comment.