Skip to content

chore: bump danger-swift to 3.23.0 (fixes Xcode 27 swiftbuild module lookup) - #264

Merged
lc-bs merged 1 commit into
masterfrom
chore/bump-danger-swift-3.23.0
Sep 21, 2026
Merged

lc-bs merged 1 commit into
masterfrom
chore/bump-danger-swift-3.23.0

Conversation

@lc-bs

@lc-bs lc-bs commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

What

Bump danger-swift from 3.20.2 to 3.23.0.

Why

danger-swift 3.20.2's runner hardcodes the SwiftPM module search path to .build/debug/Modules. Xcode 27's SwiftPM defaults to the new swiftbuild build system, which emits module files flat in .build/debug, so evaluating the Dangerfile fails with:

error: no such module 'Danger'
ERROR: Dangerfile eval failed at Dangerfile.swift

3.23.0 fixes exactly this by probing for the actual Danger.swiftmodule artifact instead of relying on the compiler that built danger-swift (danger/swift#663).

Compatibility

No API or dependency changes versus 3.20.2 — the two Package.swift files are identical apart from the version, and 3.23.0's other changes are Node/danger-js fixes in its own Docker/CI images. Projects pinning an older submodule revision are unaffected; those that pick up this revision just get a more robust runner.

Changes

  • Package.swift: from: "3.20.2" -> from: "3.23.0"
  • Package.resolved: danger-swift pinned to 3.23.0 (36e90f07244dcd5e0870803cfa6e60dd5f58457d)
  • danger-swift: replaced with the official danger-swift-macos-universal 3.23.0 release binary

Testing

  • ./danger-swift --version -> 3.23.0
  • swift build --product DangerDeps succeeds against Xcode 27 / Swift 6.4

3.23.0 fixes module lookup picking the wrong SwiftPM build layout (#663),
which breaks Dangerfile evaluation under Xcode 27's `swiftbuild` build
system with `no such module 'Danger'` (the runner hardcoded
`.build/debug/Modules`). It also moves its own images to newer Node.

There are no API or dependency changes versus 3.20.2 (identical
Package.swift), so existing consumers are unaffected.

- Package.swift: from: "3.20.2" -> "3.23.0"
- Package.resolved: pin danger-swift at 3.23.0
- danger-swift: replace the runner with the 3.23.0 universal release binary

� Generated with [OpenCode](https://opencode.ai)
@lc-bs
lc-bs merged commit 6bb1fc3 into master Sep 21, 2026
5 checks passed
@lc-bs
lc-bs deleted the chore/bump-danger-swift-3.23.0 branch September 21, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant