Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 74ee419

Browse files
committedApr 5, 2025
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 57b0814 commit 74ee419

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)
Please sign in to comment.