Skip to content

Commit

Permalink
Change dependency SwiftPM for SwiftPMDataModel-auto
Browse files Browse the repository at this point in the history
  • Loading branch information
quentinfasquel committed Apr 4, 2022
1 parent e270631 commit bc4fee4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ let package = Package(
.target(name: "RswiftCore", dependencies: [
.product(name: "Commander", package: "Commander"),
.product(name: "XcodeEdit", package: "XcodeEdit"),
.product(name: "SwiftPM", package: "swift-package-manager")
.product(name: "SwiftPMDataModel-auto", package: "swift-package-manager")
]),
.testTarget(name: "RswiftCoreTests", dependencies: ["RswiftCore"]),
]
Expand Down
9 changes: 0 additions & 9 deletions Sources/RswiftCore/RswiftCore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,6 @@ private func writeIfChanged(contents: String, toURL outputURL: URL) {

// MARK: - Swift Package Graph

private func resolveSwiftCompilerPath() throws -> AbsolutePath {
let path: String
#if os(macOS)
path = try Process.checkNonZeroExit(args: "xcrun", "--sdk", "macosx", "-f", "swiftc").spm_chomp()
#else
path = try! Process.checkNonZeroExit(args: "which", "swiftc").spm_chomp()
#endif
return AbsolutePath(path)
}

func loadSwiftPackageGraph(packageURL: URL) throws -> PackageGraph {
let observability = ObservabilitySystem { scope, diagnotic in
Expand Down

0 comments on commit bc4fee4

Please sign in to comment.