Skip to content

Commit 93aea21

Browse files
authored
Use isSPIBuild to avoid upstream build platform version issue (#166)
1 parent ce311b9 commit 93aea21

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ let buildForDarwinPlatform = envEnable("OPENSWIFTUI_BUILD_FOR_DARWIN_PLATFORM")
2828
// https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/3061#issuecomment-2118821061
2929
// By-pass https://github.com/swiftlang/swift-package-manager/issues/7580
3030
let isSPIDocGenerationBuild = envEnable("SPI_GENERATE_DOCS", default: false)
31+
let isSPIBuild = envEnable("SPI_BUILD")
3132

3233
// MARK: - Env and Config
3334

@@ -242,7 +243,7 @@ extension Target {
242243

243244
let useLocalDeps = envEnable("OPENGRAPH_USE_LOCAL_DEPS")
244245

245-
let attributeGraphCondition = envEnable("OPENGRAPH_ATTRIBUTEGRAPH", default: buildForDarwinPlatform && !isSPIDocGenerationBuild)
246+
let attributeGraphCondition = envEnable("OPENGRAPH_ATTRIBUTEGRAPH", default: buildForDarwinPlatform && !isSPIBuild)
246247

247248
if attributeGraphCondition {
248249
let privateFrameworkRepo: Package.Dependency

0 commit comments

Comments
 (0)