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-15359] swift package resolve overwrites Package.resolved #57681

Closed
danieleformichelli opened this issue Oct 20, 2021 · 1 comment
Closed
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@danieleformichelli
Copy link

Previous ID SR-15359
Radar None
Original Reporter @danyf90
Type Bug
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 1
Component/s
Labels Bug
Assignee None
Priority Medium

md5: f711410caaeb0756a04f48f976fa9e98

duplicates:

  • SR-14647 swift build incorrectly downgrading dependencies in Package.resolved

Issue Description:

I have tried to look for similar issues and I have found this one (https://bugs.swift.org/browse/SR-10718) which is marked as resolved in Xcode 11.4, but I can still replicate the same on Xcode 13 and swift 5.5.

The last comment of the issue seems to confirm it has been reintroduced at some time after the fix.

My expectation would be that SPM should respect the `Package.resolved` if possible, according to the dependencies defined in the `Package.swift`.

In case it's not possible (e.g. a dependency is not present in `Package.resolved`) or its version is outside the range defined in the `Package.swift`, then a different version can be resolved and saved in the `Package.resolved` file.

@CraigSiemens
Copy link

Related to https://bugs.swift.org/browse/SR-14647

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

2 participants