Skip to content

Commit a5a5c75

Browse files
committed
more
1 parent 1b66afd commit a5a5c75

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,8 @@ if ProcessInfo.processInfo.environment["SWIFTPM_LLBUILD_FWK"] == nil {
740740

741741
if ProcessInfo.processInfo.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
742742
package.dependencies += [
743-
.package(url: "https://github.com/apple/swift-tools-support-core.git", branch: relatedDependenciesBranch),
743+
//.package(url: "https://github.com/apple/swift-tools-support-core.git", branch: relatedDependenciesBranch),
744+
.package(path: "../swift-tools-support-core"),
744745
// The 'swift-argument-parser' version declared here must match that
745746
// used by 'swift-driver' and 'sourcekit-lsp'. Please coordinate
746747
// dependency version changes here with those projects.

Tests/CommandsTests/PackageToolTests.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,11 @@ final class PackageToolTests: CommandsTestCase {
546546

547547
let manifestA = Manifest.createRootManifest(
548548
displayName: "PackageA",
549-
path: .init(path: "/PackageA"),
549+
path: "/PackageA",
550550
toolsVersion: .v5_3,
551551
dependencies: [
552-
.fileSystem(path: .init(path: "/PackageB")),
553-
.fileSystem(path: .init(path: "/PackageC")),
552+
.fileSystem(path: "/PackageB"),
553+
.fileSystem(path: "/PackageC"),
554554
],
555555
products: [
556556
try .init(name: "exe", type: .executable, targets: ["TargetA"])
@@ -562,11 +562,11 @@ final class PackageToolTests: CommandsTestCase {
562562

563563
let manifestB = Manifest.createFileSystemManifest(
564564
displayName: "PackageB",
565-
path: .init(path: "/PackageB"),
565+
path: "/PackageB",
566566
toolsVersion: .v5_3,
567567
dependencies: [
568-
.fileSystem(path: .init(path: "/PackageC")),
569-
.fileSystem(path: .init(path: "/PackageD")),
568+
.fileSystem(path: "/PackageC"),
569+
.fileSystem(path: "/PackageD"),
570570
],
571571
products: [
572572
try .init(name: "PackageB", type: .library(.dynamic), targets: ["TargetB"])
@@ -578,10 +578,10 @@ final class PackageToolTests: CommandsTestCase {
578578

579579
let manifestC = Manifest.createFileSystemManifest(
580580
displayName: "PackageC",
581-
path: .init(path: "/PackageC"),
581+
path: "/PackageC",
582582
toolsVersion: .v5_3,
583583
dependencies: [
584-
.fileSystem(path: .init(path: "/PackageD")),
584+
.fileSystem(path: "/PackageD"),
585585
],
586586
products: [
587587
try .init(name: "PackageC", type: .library(.dynamic), targets: ["TargetC"])
@@ -593,7 +593,7 @@ final class PackageToolTests: CommandsTestCase {
593593

594594
let manifestD = Manifest.createFileSystemManifest(
595595
displayName: "PackageD",
596-
path: .init(path: "/PackageD"),
596+
path: "/PackageD",
597597
toolsVersion: .v5_3,
598598
products: [
599599
try .init(name: "PackageD", type: .library(.dynamic), targets: ["TargetD"])

Tests/PackageGraphPerformanceTests/PackageGraphPerfTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class PackageGraphPerfTests: XCTestCasePerf {
112112

113113
let root = Manifest.createRootManifest(
114114
displayName: "PackageA",
115-
path: .init(path: "/PackageA"),
115+
path: "/PackageA",
116116
toolsVersion: .v5_7,
117117
dependencies: try packageNumberSequence.map({ .fileSystem(path: try .init(validating: "/Package\($0)")) }),
118118
targets: [try .init(name: "TargetA", dependencies: ["Target1"]) ]

Tests/PackageLoadingPerformanceTests/ManifestLoadingTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ManifestLoadingPerfTests: XCTestCasePerf {
4242
for _ in 0..<N {
4343
let manifest = try! self.manifestLoader.load(
4444
manifestPath: path,
45-
packageKind: .root(.init(path: "/Trivial")),
45+
packageKind: .root("/Trivial"),
4646
toolsVersion: .v4_2,
4747
fileSystem: localFileSystem,
4848
observabilityScope: ObservabilitySystem.NOOP
@@ -77,7 +77,7 @@ class ManifestLoadingPerfTests: XCTestCasePerf {
7777
for _ in 0..<N {
7878
let manifest = try! self.manifestLoader.load(
7979
manifestPath: path,
80-
packageKind: .root(.init(path: "/Trivial")),
80+
packageKind: .root("/Trivial"),
8181
toolsVersion: .v4_2,
8282
fileSystem: localFileSystem,
8383
observabilityScope: ObservabilitySystem.NOOP

0 commit comments

Comments
 (0)