PureSwift / BluetoothLinux

Pure Swift Linux Bluetooth Stack
MIT License
184 stars 30 forks source link

Not stable dependency in package manifest file #41

Closed DrAma999 closed 20 hours ago

DrAma999 commented 2 years ago

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.