Skip to content

Commit 17e83de

Browse files
authored
Package.swift: make package name consistent with repo name (#1647)
Rest of SwiftPM packages provided by Apple follow a dash-case naming scheme consistent with repository name, usually with `swift-` prefix. This shouldn't have an impact on SwiftSyntax clients. For example `swift-format` already uses `package: "swift-syntax"` argument in its `Package.swift` for specifying the dependency.
1 parent b36fbc3 commit 17e83de

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if ProcessInfo.processInfo.environment["SWIFTPARSER_ENABLE_ALTERNATE_TOKEN_INTRO
3636
}
3737

3838
let package = Package(
39-
name: "SwiftSyntax",
39+
name: "swift-syntax",
4040
platforms: [
4141
.macOS(.v10_15),
4242
.iOS(.v13),

Tests/SwiftParserTest/LinkageTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ extension LinkageTest {
200200
let name = try XCTUnwrap(_dyld_get_image_name(i))
201201
let path = String(cString: name)
202202
// We can wind up in SwiftParserTest.xctest when built via the IDE or
203-
// in SwiftSyntaxPackageTests.xctest when built at the command line
203+
// in swift-syntaxPackageTests.xctest when built at the command line
204204
// via the package manager.
205-
guard path.hasSuffix("SwiftParserTest") || path.hasSuffix("SwiftSyntaxPackageTests") else {
205+
guard path.hasSuffix("SwiftParserTest") || path.hasSuffix("swift-syntaxPackageTests") else {
206206
continue
207207
}
208208

build-script.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def run_xctests(
440440
if verbose:
441441
swiftpm_call.extend(["--verbose"])
442442

443-
swiftpm_call.extend(["--test-product", "SwiftSyntaxPackageTests"])
443+
swiftpm_call.extend(["--test-product", "swift-syntaxPackageTests"])
444444

445445
env = dict(os.environ)
446446
env["SWIFT_BUILD_SCRIPT_ENVIRONMENT"] = "1"

0 commit comments

Comments
 (0)