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-11032] Package resolution fails when replacing remote dependency with local dependency #4689

Open
0xTim opened this issue Jun 27, 2019 · 1 comment
Labels

Comments

@0xTim
Copy link
Contributor

0xTim commented Jun 27, 2019

Previous ID SR-11032
Radar rdar://problem/52263385
Original Reporter @0xTim
Type Bug
Environment

Xcode 11 Beta 2, Swift 5.1

Apple Swift version 5.1 (swiftlang-1100.0.43.3 clang-1100.0.26.3)

Target: x86_64-apple-darwin18.6.0

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

md5: bb665ff1c519639d485217913044cd41

Issue Description:

Reproduction Steps:

  • Create iOS project with a dependency on a package - the URL must be different to the package name. E.g. URL of https://github.com/0xTim/FoodNStuffTest.git and package name of FoodNStuff. This all works.

  • Clone the package locally

  • Drag the package into the Xcode project to replace the remote dependency

Expected Behaviour:

SwiftPM resolves the dependencies correctly and replaces the existing remote dependency with the local one.

Actual behaviour:

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

Note:

This works fine if the remote URL matches the package name, e.g. https://github.com/0xTim/FoodNStuff.git and FoodNStuff

@ankitspd
Copy link
Member

@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