-
Notifications
You must be signed in to change notification settings - Fork 76
Conversation
@@ -106,6 +109,28 @@ struct Zipper { | |||
func clean (file: Foundation.URL) throws { | |||
try FileManager.default.removeItem(at: file) | |||
} | |||
|
|||
#if swift(>=5.7) | |||
private func checksum(forBinaryArtifactAt path: AbsolutePath) throws -> String { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checksum(forBinaryArtifactAt:)
is moved from Workspace
to Workspace.BinaryArtifactsManager
.
Unfortunately, workspace.binaryArtifactsManager
is concealed from externals.
So I ported the same implementation from the original SwiftPM codes.
@@ -23,7 +23,7 @@ struct ProjectGenerator { | |||
|
|||
var projectPath: AbsolutePath { | |||
let dir = AbsolutePath(self.package.projectBuildDirectory.path) | |||
return buildXcodeprojPath(outputDir: dir, projectName: self.package.manifest.displayName) | |||
return XcodeProject.makePath(outputDir: dir, projectName: self.package.manifest.displayName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This global method is moved to a static method.
Thanks very much for raising this PR! The code itself looks fantastic to me, I'll run some tests here on my end as well but assuming CI passes we should be good to merge this pretty much straight away. |
Thanks very much for the PR! I appreciate the time you took to annotate your PR as well – the notes and reasoning made it a really easy one to review. |
Context
Since Xcode 14.0 beta 5, swift-tools-support-core@release/5.6 doesn't build due to broken compatibilities.
I updated
swift-tools-support-core
andswift-package-manager
torelease/5.7
.This PR makes this project enable to build with the latest Xcode. (above Xcode 14 beta 5).
Description
Due to updated dependencies, some APIs are changed. So I changed some implementations.
Unfortunately, GitHub Action doesn't support the latest Xcode yet. So we can't update CI stacks.