-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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-15262] SwiftPM 5.5 Fails to resolve dependencies #4385
Comments
As an observation: I only encountered this issue with every Xcode 13 beta, except the first one on my Macbook Pro. The Xcode 13 RC fixed this issue on my MBP. However, for my mac mini, no version of Xcode 13 is working for me. |
Very weird, thank you for the report! |
@swift-ci create |
I updated my Mac mini to 11.6 to see if Xcode 13 RC 1 would work with that version, and I'm getting the same issue. |
Interestingly, when trying to resolve dependencies for RediStack, only a single error is reported by SwiftPM for the SwiftServiceDiscovery package: https://github.com/apple/swift-service-discovery: error: Failed to clone repository https://github.com/apple/swift-service-discovery:
Cloning into '/Users/nathanharris/dev/mordil/RediStack/.build/checkouts/swift-service-discovery'...
fatal: invalid branch name: init.defaultBranch = However, when trying to resolve Vapor/Redis, practically the entire dependency graph throws the same error |
Cannot repro this, could you please try deleting your SwiftPM cache? It is located at `~/Library/Caches/org.swift.swiftpm`. |
@neonichu Does Xcode not do this when using File > Swift Packages > Reset Package Caches? |
> Does Xcode not do this when using File > Swift Packages > Reset Package Caches? |
I can't reproduce it with the latest Xcode both from Xcode or SPM.Swift version: Apple Swift version 5.5.1 (swiftlang-1300.0.31.4 clang-1300.0.29.6)
|
Deleting the cache seems to resolve this. This is why newly cloned projects don't reproduce this |
Environment
swift-driver version: 1.26.9 Apple Swift version 5.5 (swiftlang-1300.0.31.1 clang-1300.0.29.1)
Target: x86_64-apple-macosx11.0
macOS 11.4
Mac mini (2018)
Memory 8gb
CPU 3.6 GHz Quad-core Intel i3
Additional Detail from JIRA
md5: 587840783e23602723f5ec4c441a8b6f
Issue Description:
When trying to work on Vapor/Redis, SwiftPM fails to resolve dependencies.
When running swift package resolve, or through Xcode, SwiftPM fails to resolve dependencies using Swift 5.5 (release), but this happened even with beta builds.
The error message is repeated for each dependency in the graph
I've deleted Xcode's DerivedData, as well as the .build folder within the project directory.
Still receive the same error
The text was updated successfully, but these errors were encountered: