[SR-15359] swift package resolve
overwrites Package.resolved
#57681
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Additional Detail from JIRA
md5: f711410caaeb0756a04f48f976fa9e98
duplicates:
swift build
incorrectly downgrading dependencies in Package.resolvedIssue 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.
The text was updated successfully, but these errors were encountered: