We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7a97341 + e01c300 commit 7a77898Copy full SHA for 7a77898
Package.swift
@@ -142,6 +142,9 @@ let package = Package(
142
]
143
)
144
145
-if ProcessInfo.processInfo.environment["SWIFT_BUILD_SCRIPT_ENVIRONMENT"] == nil {
+// If `SWIFTCI_USE_LOCAL_DEPS` is set, we are in a CI enviornment that might disallow
146
+// internet access, so we can't load swift-docc-plugin. Simply don't load it in these
147
+// environments because we don't build docc in CI at the moment.
148
+if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
149
package.dependencies.append(.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"))
150
}
0 commit comments