Skip to content

Commit 19e0474

Browse files
authored
Merge pull request swiftlang#83 from allevato/tools-support-core-migration
Migrate to swift-tools-support-core.
2 parents 163dd77 + 3dd08a6 commit 19e0474

File tree

6 files changed

+18
-27
lines changed

6 files changed

+18
-27
lines changed

Package.resolved

Lines changed: 9 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:4.2
1+
// swift-tools-version:5.1
22
//===----------------------------------------------------------------------===//
33
//
44
// This source file is part of the Swift.org open source project
@@ -21,11 +21,11 @@ let package = Package(
2121
.library(name: "SwiftFormatConfiguration", targets: ["SwiftFormatConfiguration"]),
2222
],
2323
dependencies: [
24-
.package(url: "https://github.com/apple/swift-package-manager.git", from: "0.4.0"),
2524
.package(
2625
url: "https://github.com/apple/swift-syntax",
2726
.revision("swift-DEVELOPMENT-SNAPSHOT-2019-09-26-m")
2827
),
28+
.package(url: "https://github.com/apple/swift-tools-support-core.git", from: "0.0.1"),
2929
],
3030
targets: [
3131
.target(
@@ -60,11 +60,11 @@ let package = Package(
6060
.target(
6161
name: "swift-format",
6262
dependencies: [
63-
"SPMUtility",
6463
"SwiftFormat",
6564
"SwiftFormatConfiguration",
6665
"SwiftFormatCore",
6766
"SwiftSyntax",
67+
"SwiftToolsSupport-auto",
6868
]
6969
),
7070
.testTarget(

Sources/swift-format/CommandLineOptions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Basic
1413
import Foundation
15-
import SPMUtility
1614
import SwiftFormat
15+
import TSCBasic
16+
import TSCUtility
1717

1818
/// Collects the command line options that were passed to `swift-format`.
1919
struct CommandLineOptions {

Sources/swift-format/Run.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Basic
1413
import Foundation
1514
import SwiftFormat
1615
import SwiftFormatConfiguration
1716
import SwiftFormatCore
1817
import SwiftSyntax
18+
import TSCBasic
1919

2020
/// Runs the linting pipeline over the provided source file.
2121
///

Sources/swift-format/ToolMode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import SPMUtility
13+
import TSCUtility
1414

1515
/// The mode in which the `swift-format` tool should run.
1616
enum ToolMode: String, Codable, ArgumentKind {

Sources/swift-format/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Basic
1413
import Foundation
15-
import SPMUtility
1614
import SwiftFormat
1715
import SwiftFormatConfiguration
1816
import SwiftFormatCore
17+
import TSCBasic
18+
import TSCUtility
1919

2020
fileprivate func main(_ arguments: [String]) -> Int32 {
2121
let url = URL(fileURLWithPath: arguments.first!)

0 commit comments

Comments
 (0)