Skip to content
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-8379] SwiftPM? Crash when compiling LinkerKitIRCBot #5347

Closed
swift-ci opened this issue Jul 26, 2018 · 3 comments
Closed

[SR-8379] SwiftPM? Crash when compiling LinkerKitIRCBot #5347

swift-ci opened this issue Jul 26, 2018 · 3 comments
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-8379
Radar rdar://problem/42625896
Original Reporter helge (JIRA User)
Type Bug
Status Resolved
Resolution Done
Environment

Xcode 10b4

macOS 10.13.6 (17G65)

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: f4f4a028e8a0198356a225da108409af

is duplicated by:

  • SR-7334 SwiftPM should warn if a manifest contains multiple declarations for a dependency

Issue Description:

Getting: Fatal error: Duplicate values for key: 'IRCServer'

helge@ZeaPro LinkerKitIRCBot (develop)*$ rm -rf .build Package.resolved && swift build
Fetching https://github.com/uraimo/SwiftyGPIO.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/SwiftNIOExtras/swift-nio-irc.git
Fetching https://github.com/NozeIO/swift-nio-irc-server.git
Fetching https://github.com/NozeIO/swift-nio-irc-eliza.git
Fetching https://github.com/NozeIO/swift-nio-irc-webclient.git
Fetching https://github.com/SwiftyLinkerKit/SwiftyLinkerKit.git
Fetching https://github.com/apple/swift-nio-zlib-support.git
Fetching https://github.com/AlwaysRightInstitute/SwiftEliza.git
Fetching https://github.com/NozeIO/swift-nio-irc-client.git
Fetching https://github.com/AlwaysRightInstitute/SwiftyTM1637.git
Completed resolution in 11.72s
Cloning https://github.com/NozeIO/swift-nio-irc-client.git
Resolving https://github.com/NozeIO/swift-nio-irc-client.git at 0.6.0
Cloning https://github.com/AlwaysRightInstitute/SwiftyTM1637.git
Resolving https://github.com/AlwaysRightInstitute/SwiftyTM1637.git at 0.1.2
Cloning https://github.com/SwiftNIOExtras/swift-nio-irc.git
Resolving https://github.com/SwiftNIOExtras/swift-nio-irc.git at 0.6.0
Cloning https://github.com/uraimo/SwiftyGPIO.git
Resolving https://github.com/uraimo/SwiftyGPIO.git at 1.0.8
Cloning https://github.com/SwiftyLinkerKit/SwiftyLinkerKit.git
Resolving https://github.com/SwiftyLinkerKit/SwiftyLinkerKit.git at 0.1.3
Cloning https://github.com/AlwaysRightInstitute/SwiftEliza.git
Resolving https://github.com/AlwaysRightInstitute/SwiftEliza.git at 1.0.0
Cloning https://github.com/apple/swift-nio.git
Resolving https://github.com/apple/swift-nio.git at 1.8.0
Cloning https://github.com/NozeIO/swift-nio-irc-server.git
Resolving https://github.com/NozeIO/swift-nio-irc-server.git at 0.6.0
Cloning https://github.com/apple/swift-nio-zlib-support.git
Resolving https://github.com/apple/swift-nio-zlib-support.git at 1.0.0
Cloning https://github.com/NozeIO/swift-nio-irc-webclient.git
Resolving https://github.com/NozeIO/swift-nio-irc-webclient.git at 0.6.0
Cloning https://github.com/NozeIO/swift-nio-irc-eliza.git
Resolving https://github.com/NozeIO/swift-nio-irc-eliza.git at 0.6.0
Fatal error: Duplicate values for key: 'IRCServer': file /BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1000.0.29.2/src/swift/stdlib/public/core/Dictionary.swift, line 3851
Illegal instruction: 4

This should be reproducible by cloning: https://github.com/SwiftyLinkerKit/LinkerKitIRCBot.git and then checking out the branch `feature/package-reorg-42`.

@swift-ci
Copy link
Contributor Author

Comment by Helge Heß (JIRA)

This is caused by a duplicate

.package(url: "https://github.com/NozeIO/swift-nio-irc-server.git",
from: "0.6.0"),

in the manifest. Which should generate a proper error, not a crash.

@ankitspd
Copy link
Member

@swift-ci create

@ankitspd
Copy link
Member

#1707

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants