Skip to content

Use an explicit path to Swift from Swiftly#594

Merged
dkovba merged 2 commits intoapple:mainfrom
dkovba:dkovba/swiftly
Mar 23, 2026
Merged

Use an explicit path to Swift from Swiftly#594
dkovba merged 2 commits intoapple:mainfrom
dkovba:dkovba/swiftly

Conversation

@dkovba
Copy link
Copy Markdown
Contributor

@dkovba dkovba commented Mar 23, 2026

Prior to this change, make vmintid failed with which swift equals to /usr/bin/swift:

/Users/Dmitry/Apple/containerization/vminitd/.build/checkouts/swift-protobuf/Sources/SwiftProtobuf/AnyMessageStorage.swift:16:8: error: compiled module was created by an older version of the compiler; rebuild 'Foundation' and try again: /Users/Dmitry/Library/org.swift.swiftpm/swift-sdks/swift-6.3-DEVELOPMENT-SNAPSHOT-2026-02-27-a_static-linux-0.1.0.artifactbundle/swift-6.3-DEVELOPMENT-SNAPSHOT-2026-02-27-a_static-linux-0.1.0/swift-linux-musl/musl-1.2.5.sdk/aarch64/usr/lib/swift_static/linux-static/Foundation.swiftmodule/aarch64-swift-linux-musl.swiftmodule

With an explicit path to Swift from Swiftly, make vminitd works both with which swift equals to ~/.swiftly/bin/swift or /usr/bin/swift.

@dkovba dkovba requested a review from jglogan March 23, 2026 21:28
@dkovba dkovba marked this pull request as draft March 23, 2026 21:34
@dkovba dkovba marked this pull request as ready for review March 23, 2026 21:41
@dkovba dkovba marked this pull request as draft March 23, 2026 21:50
@dkovba dkovba force-pushed the dkovba/swiftly branch 3 times, most recently from 5be9d25 to 5aff4ec Compare March 23, 2026 22:29
@dkovba dkovba marked this pull request as ready for review March 23, 2026 22:55
@dkovba dkovba merged commit 2c79ff6 into apple:main Mar 23, 2026
3 checks passed
@dkovba dkovba deleted the dkovba/swiftly branch March 23, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants