Skip to content

Commit 36ed250

Browse files
zhiqipanclaude
andcommitted
Force SwiftSyntax 602.x for Swift 6.2 CI job
On Swift 6.2, SPM resolves to SwiftSyntax 600.0.1 by default (per Package.swift), which doesn't have the SwiftSyntax602 module. Use sed to temporarily force SwiftSyntax 602.x so we actually test the SwiftSyntax602 code path. This also may avoid the prebuilt binary linker conflicts that occur with SwiftSyntax 600.0.1 on Swift 6.2. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0be0c07 commit 36ed250

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ jobs:
7777
node-version: '20'
7878
- name: Install TypeScript
7979
run: npm install --prefix Plugins/BridgeJS/Sources/TS2Swift/JavaScript
80+
- name: Force SwiftSyntax 602 for Swift 6.2
81+
if: matrix.swift-image == 'swift:6.2'
82+
working-directory: Plugins/BridgeJS
83+
run: |
84+
# Force SwiftSyntax 602.x to test the SwiftSyntax602 code path
85+
sed -i 's/from: "600.0.1"/from: "602.0.0"/' Package.swift
86+
# Clean any cached resolution
87+
rm -rf .build Package.resolved
8088
- name: Run BridgeJS tests
8189
run: swift test --package-path ./Plugins/BridgeJS
8290

0 commit comments

Comments
 (0)