Skip to content

Package dependency resolution appears to not work as intended #7316

Open
@bcardarella

Description

@bcardarella

Description

I am seeing what I believe is unintended behavior for dependency resolution with SwiftPM

I have two libraries that are tagged as pre-release:

the Mapkit lib depends on the SwiftUI client lib.

the SwiftUI client was installed with Exact Version: 0.3.0-alpha.3

this installs OK.

The Mapkit lib has a dependency of liveview-client-swiftui from: 0.2.0 which should be valid for every version from 0.2.0 - 1.0.0

Expected behavior

I would expect the Mapkit lib to install OK because it's Package.swift file has a dependency rule for liveview-client-swiftui for a range of versions that the installed version is within

Actual behavior

Installation of the Mapkit lib fails with this error:

3b258a8e9dd0c46b61f0bbe8bd7b7a45462fce79

Steps to reproduce

No response

Swift Package Manager version/commit hash

Xcode 15.2

Swift & OS version (output of swift --version ; uname -a)

Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.2.0
Darwin Brians-MacBook-Air.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:59:33 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T8112 arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions