New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-6537] SRP source breakage: Fatal error: Duplicate values for key: 'BigInt' #4848
Comments
@swift-ci create |
The error message now throws a warning about the duplicate, but it's not clear from the error message where the original is defined (swift-4.1-DEVELOPMENT-SNAPSHOT-2017-12-16-a): swift package show-dependencies
.
├── Cryptor<https://github.com/IBM-Swift/BlueCryptor.git@0.8.16>
│ └── CommonCrypto<https://github.com/IBM-Swift/CommonCrypto.git@0.1.5>
└── BigInt<https://github.com/lorentey/BigInt.git@3.0.0>
└── SipHash<https://github.com/attaswift/SipHash@1.2.0>
'BigInt' /Users/bouke/Library/Mobile Documents/com~apple~CloudDocs/Developer/SRP/.build/checkouts/BigInt.git--5127040856227023039: warning: Ignoring duplicate product 'BigInt' (static) After a short investigation I found that BigInt itself has two products named BigInt (one static, one dynamic). While that resolves the error in SwiftPM, it now results in another breaking change for BigInt. Mostly around some integers not conforming to protocol 'BidirectionalCollection'. |
Thats weird, this change shouldn't trigger a compiler issue. I'll investigate. |
SRP compiles successfully for me after this change. |
BigInt (dependency of SRP) doesn't build for me against a recent 4.1 snapshot, the build error can be found here: attaswift/BigInt#38 I haven't investigated why, but it looks like a source breaking change in 4.1. |
swiftpm has been fixed (thanks Ankit!), and BigInt is fixed by apple/swift#13567 |
Thank you all. The build succeeds and the tests pass. 👍 |
Additional Detail from JIRA
md5: 493c65f8d98f9c48ae1c716def3e97ec
duplicates:
Issue Description:
To reproduce:
To build Swift from scratch before testing:
4. $ ./reproduce.py master --project-path SRP --assertions
Or if you've already built Swift:
4. $ ./reproduce.py master --project-path SRP --assertions --swiftc path/to/swiftc
https://ci.swift.org/job/swift-PR-source-compat-suite-test-macOS/51/artifact/swift-source-compat-suite/FAIL_BuildSwiftPackage_SRP.log
The text was updated successfully, but these errors were encountered: