Skip to content

Commit 72552e2

Browse files
Kyle-YeQuietMisdreavus
authored andcommitted
Fix CI Error
1 parent 1d2f926 commit 72552e2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Package.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import PackageDescription
1313
import class Foundation.ProcessInfo
1414

15+
let cmarkPackageName = ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil ? "swift-cmark" : "swift-cmark-gfm"
16+
1517
let package = Package(
1618
name: "swift-markdown",
1719
products: [
@@ -27,8 +29,8 @@ let package = Package(
2729
name: "Markdown",
2830
dependencies: [
2931
"CAtomic",
30-
.product(name: "cmark-gfm", package: "swift-cmark"),
31-
.product(name: "cmark-gfm-extensions", package: "swift-cmark"),
32+
.product(name: "cmark-gfm", package: cmarkPackageName),
33+
.product(name: "cmark-gfm-extensions", package: cmarkPackageName),
3234
]),
3335
.target(
3436
name: "markdown-tool",

[email protected]

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
import PackageDescription
1515
import class Foundation.ProcessInfo
1616

17+
let cmarkPackageName = ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil ? "swift-cmark" : "swift-cmark-gfm"
18+
1719
let package = Package(
1820
name: "swift-markdown",
1921
products: [
@@ -29,8 +31,8 @@ let package = Package(
2931
name: "Markdown",
3032
dependencies: [
3133
"CAtomic",
32-
.product(name: "cmark-gfm", package: "swift-cmark"),
33-
.product(name: "cmark-gfm-extensions", package: "swift-cmark"),
34+
.product(name: "cmark-gfm", package: cmarkPackageName),
35+
.product(name: "cmark-gfm-extensions", package: cmarkPackageName),
3436
]),
3537
.executableTarget(
3638
name: "markdown-tool",

0 commit comments

Comments
 (0)