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-12525] SPM fails with a strange error #4568

Open
swift-ci opened this issue Apr 6, 2020 · 2 comments
Open

[SR-12525] SPM fails with a strange error #4568

swift-ci opened this issue Apr 6, 2020 · 2 comments
Labels

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Apr 6, 2020

Previous ID SR-12525
Radar rdar://problem/62201749
Original Reporter chriseidhof (JIRA User)
Type Bug
Environment

Xcode 11.4
Build version 11E146

Swift Package Manager - Swift 5.2.0

macOS 10.15.4 (19E266)

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

md5: 19b25cb96ab30755538faabae69f48ca

Issue Description:

To reproduce, add the following two dependencies to your Package.swift file:

        .package(name: "CommonMark", url: "https://github.com/chriseidhof/commonmark-swift/", .branch("embed-c")),
        .package(name: "Incremental", url: "https://github.com/chriseidhof/incremental-simplified/", .branch("v2")),

When you do this on a clean project, the following error happens:

Updating https://github.com/chriseidhof/commonmark-swift/
Updating https://github.com/chriseidhof/incremental-simplified/
Resolving https://github.com/chriseidhof/commonmark-swift/ at embed-c
Updating https://github.com/chriseidhof/commonmark-swift/
Updating https://github.com/chriseidhof/incremental-simplified/
Everything is already up-to-date
error: the Package.resolved file is most likely severely out-of-date and is preventing correct resolution; delete the resolved file and try again

I tried simplifying it by adding a specific revision for each package but then a different error happens �‍♂️(reference not a tree, even though the commit exists).

I think there's a decent chance I'm doing something wrong, but I'm not yet sure what.

@swift-ci
Copy link
Contributor Author

swift-ci commented Apr 6, 2020

Comment by Chris Eidhof (JIRA)

I'll try to fix this / work around in the meantime, for future reference, the commit I was using for commonmark-swift is 797cbc0f03da8d5f4620c66919db6263fbc5f4d5. (I'm pretty sure the problem is in that repo).

@beccadax
Copy link
Contributor

@swift-ci create

@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
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