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-14706] SPM crashes with certain dependencies #4417

Closed
swift-ci opened this issue Jun 2, 2021 · 2 comments
Closed

[SR-14706] SPM crashes with certain dependencies #4417

swift-ci opened this issue Jun 2, 2021 · 2 comments
Labels

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Jun 2, 2021

Previous ID SR-14706
Radar rdar://problem/78777252
Original Reporter chriseidhof (JIRA User)
Type Bug
Status Resolved
Resolution Invalid
Environment

Swift 5.3.2

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

md5: f19c2ad668bfd837cacc272a9921a784

Issue Description:

I'm trying to include two separate dependencies, and I'm not sure why, but SPM crashes:

error: the Package.resolved file is most likely severely out-of-date and is preventing correct resolution; delete the resolved file and try again

(Deleting the resolved and or .build directory don't help).

Here are the two packages:

      .package(name: "CommonMark", url: "https://github.com/chriseidhof/commonmark-swift/", .branch("embed-c-gfm")),
        .package(name: "Swim", url: "https://github.com/robb/Swim/", from: "0.1.1"),

When you create an empty package and add these two as dependencies this'll crash.

@typesanitizer
Copy link

@swift-ci create

@neonichu
Copy link
Member

neonichu commented Jun 2, 2021

Problem is the wrong package name being used, newer versions of SwiftPM (e.g. 5.4) present a more helpful diagnostic:

dependency on 'https://github.com/robb/Swim/' has an explicit name 'Swim' which does not match the name 'HTML' set for 'https://github.com/robb/Swim/'

@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

3 participants