Skip to content

Commit

Permalink
Fix path-related deprecation warnings (#5833)
Browse files Browse the repository at this point in the history
Looks like I missed a few here.
  • Loading branch information
neonichu authored Oct 26, 2022
1 parent d52267a commit db9a253
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions Tests/BuildTests/BuildPlanTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ final class BuildPlanTests: XCTestCase {
manifests: [
Manifest.createFileSystemManifest(
name: "fooPkg",
path: .init("/fooPkg"),
path: .init(path: "/fooPkg"),
products: [
ProductDescription(name: "Logging", type: .library(.dynamic), targets: ["FooLogging"]),
],
Expand All @@ -53,7 +53,7 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createFileSystemManifest(
name: "barPkg",
path: .init("/barPkg"),
path: .init(path: "/barPkg"),
products: [
ProductDescription(name: "Logging", type: .library(.static), targets: ["BarLogging"]),
],
Expand All @@ -62,11 +62,11 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createRootManifest(
name: "thisPkg",
path: .init("/thisPkg"),
path: .init(path: "/thisPkg"),
toolsVersion: .vNext,
dependencies: [
.localSourceControl(path: .init("/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init("/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
.localSourceControl(path: .init(path: "/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init(path: "/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
],
targets: [
TargetDescription(name: "exe",
Expand Down Expand Up @@ -103,7 +103,7 @@ final class BuildPlanTests: XCTestCase {
manifests: [
Manifest.createFileSystemManifest(
name: "fooPkg",
path: .init("/fooPkg"),
path: .init(path: "/fooPkg"),
products: [
ProductDescription(name: "Logging", type: .library(.dynamic), targets: ["FooLogging"]),
],
Expand All @@ -112,7 +112,7 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createFileSystemManifest(
name: "barPkg",
path: .init("/barPkg"),
path: .init(path: "/barPkg"),
products: [
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BarLogging"]),
],
Expand All @@ -121,11 +121,11 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createRootManifest(
name: "thisPkg",
path: .init("/thisPkg"),
path: .init(path: "/thisPkg"),
toolsVersion: .vNext,
dependencies: [
.localSourceControl(path: .init("/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init("/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
.localSourceControl(path: .init(path: "/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init(path: "/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
],
targets: [
TargetDescription(name: "exe",
Expand Down Expand Up @@ -169,7 +169,7 @@ final class BuildPlanTests: XCTestCase {
manifests: [
Manifest.createFileSystemManifest(
name: "bazPkg",
path: .init("/bazPkg"),
path: .init(path: "/bazPkg"),
products: [
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BazLogging"]),
],
Expand All @@ -178,7 +178,7 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createFileSystemManifest(
name: "barPkg",
path: .init("/barPkg"),
path: .init(path: "/barPkg"),
products: [
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BarLogging"]),
],
Expand All @@ -187,11 +187,11 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createFileSystemManifest(
name: "fooPkg",
path: .init("/fooPkg"),
path: .init(path: "/fooPkg"),
toolsVersion: .vNext,
dependencies: [
.localSourceControl(path: .init("/barPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init("/bazPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init(path: "/barPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init(path: "/bazPkg"), requirement: .upToNextMajor(from: "1.0.0")),
],
products: [
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["FooLogging"]),
Expand All @@ -208,7 +208,7 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createFileSystemManifest(
name: "xPkg",
path: .init("/xPkg"),
path: .init(path: "/xPkg"),
products: [
ProductDescription(name: "Utils", type: .library(.automatic), targets: ["XUtils"]),
],
Expand All @@ -217,7 +217,7 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createFileSystemManifest(
name: "yPkg",
path: .init("/yPkg"),
path: .init(path: "/yPkg"),
products: [
ProductDescription(name: "Utils", type: .library(.automatic), targets: ["YUtils"]),
],
Expand All @@ -226,12 +226,12 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createRootManifest(
name: "thisPkg",
path: .init("/thisPkg"),
path: .init(path: "/thisPkg"),
toolsVersion: .vNext,
dependencies: [
.localSourceControl(path: .init("/xPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init("/yPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init("/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init(path: "/xPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init(path: "/yPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init(path: "/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
],
targets: [
TargetDescription(name: "exe",
Expand Down Expand Up @@ -279,7 +279,7 @@ final class BuildPlanTests: XCTestCase {
manifests: [
Manifest.createFileSystemManifest(
name: "bazPkg",
path: .init("/bazPkg"),
path: .init(path: "/bazPkg"),
products: [
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BazLogging"]),
],
Expand All @@ -288,7 +288,7 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createFileSystemManifest(
name: "barPkg",
path: .init("/barPkg"),
path: .init(path: "/barPkg"),
products: [
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BarLogging"]),
],
Expand All @@ -297,11 +297,11 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createFileSystemManifest(
name: "fooPkg",
path: .init("/fooPkg"),
path: .init(path: "/fooPkg"),
toolsVersion: .vNext,
dependencies: [
.localSourceControl(path: .init("/barPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init("/bazPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init(path: "/barPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init(path: "/bazPkg"), requirement: .upToNextMajor(from: "1.0.0")),
],
products: [
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["Logging"]),
Expand All @@ -318,9 +318,9 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createRootManifest(
name: "thisPkg",
path: .init("/thisPkg"),
path: .init(path: "/thisPkg"),
dependencies: [
.localSourceControl(path: .init("/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init(path: "/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
],
targets: [
TargetDescription(name: "exe",
Expand Down Expand Up @@ -359,10 +359,10 @@ final class BuildPlanTests: XCTestCase {
manifests: [
Manifest.createFileSystemManifest(
name: "fooPkg",
path: .init("/fooPkg"),
path: .init(path: "/fooPkg"),
toolsVersion: .vNext,
dependencies: [
.localSourceControl(path: .init("/barPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init(path: "/barPkg"), requirement: .upToNextMajor(from: "1.0.0")),
],
products: [
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["FooLogging"]),
Expand All @@ -376,7 +376,7 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createFileSystemManifest(
name: "barPkg",
path: .init("/barPkg"),
path: .init(path: "/barPkg"),
products: [
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BarLogging"]),
],
Expand All @@ -385,9 +385,9 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createRootManifest(
name: "thisPkg",
path: .init("/thisPkg"),
path: .init(path: "/thisPkg"),
dependencies: [
.localSourceControl(path: .init("/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init(path: "/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
],
targets: [
TargetDescription(name: "exe",
Expand Down Expand Up @@ -425,7 +425,7 @@ final class BuildPlanTests: XCTestCase {
manifests: [
Manifest.createFileSystemManifest(
name: "fooPkg",
path: .init("/fooPkg"),
path: .init(path: "/fooPkg"),
toolsVersion: .vNext,
products: [
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["FooLogging"]),
Expand All @@ -435,7 +435,7 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createFileSystemManifest(
name: "barPkg",
path: .init("/barPkg"),
path: .init(path: "/barPkg"),
products: [
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BarLogging"]),
],
Expand All @@ -444,10 +444,10 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createRootManifest(
name: "thisPkg",
path: .init("/thisPkg"),
path: .init(path: "/thisPkg"),
dependencies: [
.localSourceControl(path: .init("/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init("/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
.localSourceControl(path: .init(path: "/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init(path: "/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
],
targets: [
TargetDescription(name: "exe",
Expand Down Expand Up @@ -484,7 +484,7 @@ final class BuildPlanTests: XCTestCase {
manifests: [
Manifest.createFileSystemManifest(
name: "fooPkg",
path: .init("/fooPkg"),
path: .init(path: "/fooPkg"),
products: [
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["FooLogging"]),
],
Expand All @@ -493,7 +493,7 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createFileSystemManifest(
name: "barPkg",
path: .init("/barPkg"),
path: .init(path: "/barPkg"),
products: [
ProductDescription(name: "Logging", type: .library(.automatic), targets: ["BarLogging"]),
],
Expand All @@ -502,11 +502,11 @@ final class BuildPlanTests: XCTestCase {
]),
Manifest.createRootManifest(
name: "thisPkg",
path: .init("/thisPkg"),
path: .init(path: "/thisPkg"),
toolsVersion: .vNext,
dependencies: [
.localSourceControl(path: .init("/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init("/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
.localSourceControl(path: .init(path: "/fooPkg"), requirement: .upToNextMajor(from: "1.0.0")),
.localSourceControl(path: .init(path: "/barPkg"), requirement: .upToNextMajor(from: "2.0.0")),
],
targets: [
TargetDescription(name: "exe",
Expand Down

0 comments on commit db9a253

Please sign in to comment.