Skip to content

Commit ad84e42

Browse files
committed
Fix build failure on Swift Playgrounds
The PR #311 introduced `Context.environment`, so that swift-async-algorithm can no longer be used in the Swift Playgrounds. However, `Context.environment` is equivalent to `ProcessInfo.processInfo.environment`, so this is an unnecessary sacrifice. This change is intended to fix that.
1 parent 4c3ea81 commit ad84e42

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Package.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// swift-tools-version: 5.8
22

3+
import Foundation
34
import PackageDescription
45

56
let package = Package(
@@ -49,7 +50,7 @@ let package = Package(
4950
]
5051
)
5152

52-
if Context.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
53+
if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
5354
package.dependencies += [
5455
.package(url: "https://github.com/apple/swift-collections.git", from: "1.1.0"),
5556
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),

0 commit comments

Comments
 (0)