Skip to content

Commit

Permalink
fix: fix concurrency checks on Package.swift (#826)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbelkins committed Sep 18, 2024
1 parent 5b570f6 commit 7b75b71
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,17 @@ let package = Package(
.library(name: "SmithyWaitersAPI", targets: ["SmithyWaitersAPI"]),
.library(name: "SmithyTestUtil", targets: ["SmithyTestUtil"]),
],
dependencies: [
.package(url: "https://github.com/awslabs/aws-crt-swift.git", exact: "0.36.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
],
dependencies: {
var dependencies: [Package.Dependency] = [
.package(url: "https://github.com/awslabs/aws-crt-swift.git", exact: "0.36.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
]
let isDocCEnabled = ProcessInfo.processInfo.environment["AWS_SWIFT_SDK_ENABLE_DOCC"] != nil
if isDocCEnabled {
dependencies.append(.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"))
}
return dependencies
}(),
targets: [
.target(
name: "Smithy",
Expand Down Expand Up @@ -275,12 +282,3 @@ let package = Package(
),
].compactMap { $0 }
)

func addDoccDependency() {
guard ProcessInfo.processInfo.environment["AWS_SWIFT_SDK_ENABLE_DOCC"] != nil else { return }
package.dependencies += [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0")
]
}

addDoccDependency()

0 comments on commit 7b75b71

Please sign in to comment.