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

Not stable dependency in package manifest file #41

Open
DrAma999 opened this issue Nov 10, 2022 · 0 comments
Open

Not stable dependency in package manifest file #41

DrAma999 opened this issue Nov 10, 2022 · 0 comments

Comments

@DrAma999
Copy link

In the Package.swift ,of the tagged version 5.0.5, is declared this dependency.

 .package(
            url: "https://github.com/PureSwift/Socket.git",
            .branch("main")
        )

Since the dependency is pointing to a branch SPM can not resolve it:

Computing version for https://github.com/PureSwift/BluetoothLinux
error: Dependencies could not be resolved because root depends on 'bluetoothlinux' 5.0.5..<5.1.0.
'bluetoothlinux' >= 5.0.5 cannot be used because no versions of 'bluetoothlinux' match the requirement 5.0.6..<5.1.0 and package 'bluetoothlinux' is required using a stable-version but 'bluetoothlinux' depends on an unstable-version package 'socket'.

The package file of a tagged version should point to a dependency with a tagged version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant