danger / swift

⚠️ Stop saying "you forgot to …" in code review
https://danger.systems/swift/
MIT License
1.05k stars 141 forks source link

error: module compiled with Swift 5.5.2 cannot be imported by the Swift 5.6.1 compiler #519

Closed antleung closed 2 years ago

antleung commented 2 years ago

Getting this error when running danger-swift pr [path-to-pr] locally

/var/folders/wf/mvxynpsj3wb3xk6v2bjmkqx80000gq/T/_tmp_dangerfile.swift:1:8: error: module compiled with Swift 5.5.2 cannot be imported by the Swift 5.6.1 compiler: /opt/homebrew/lib/danger/Danger.swiftmodule

Any idea on how to fix this?

417-72KI commented 2 years ago

I think Danger-Swift is not supporting ABI/Module Stability. It would be fixed with re-installing.

antleung commented 2 years ago

Thanks @417-72KI . Re-installing danger-swift fixed the issue.