Skip to content

Commit 6d8a7b4

Browse files
johnbuteJohn Bute
and
John Bute
authored
Fixed update of swift-syntax package version in swiftpm macro templates (#8312)
Fixed SwiftPM macro template manifest depending on new swift syntax release ### Motivation: Use the latest version of swift-syntax package in SwiftPM macro templates ### Modifications:ss changed the default version to 601 and edited a test case to reflect change ### Result: If user does not have a toolchain with a config.json, the default version of swift-syntax is 601 Co-authored-by: John Bute <[email protected]>
1 parent f3f8217 commit 6d8a7b4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/PackageModel/InstalledSwiftPMConfiguration.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public struct InstalledSwiftPMConfiguration {
3737
return .init(
3838
version: 0,
3939
swiftSyntaxVersionForMacroTemplate: .init(
40-
major: 600,
40+
major: 601,
4141
minor: 0,
4242
patch: 0,
4343
prereleaseIdentifier: "latest"

Tests/PackageModelSyntaxTests/ManifestEditTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ class ManifestEditTests: XCTestCase {
524524
let package = Package(
525525
name: "packages",
526526
dependencies: [
527-
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "600.0.0-latest"),
527+
.package(url: "https://github.com/swiftlang/swift-syntax.git", from: "601.0.0-latest"),
528528
],
529529
targets: [
530530
.macro(

0 commit comments

Comments
 (0)