Package Loading - Failed to resolve dependencies

I've updated my Swift Package, PixelKit, to Swift 5.3.
I tagged my commit with 1.1.1 and pushed to origin.

Tho when trying to add it to another package, it failed to resolve dependencies:

because PixelKit >=1.0.13 contains incompatible tools version and root depends on PixelKit 1.1.1..<2.0.0, version solving failed.

Here's how I include it:
Code Block
.package(url: "https://github.com/hexagons/PixelKit.git", from: "1.1.1")

I'm not sure what the old tag 1.0.13 has to do with this.

I'm using the same swift tools version in both packages:
Code Block
// swift-tools-version:5.3

Accepted Reply

Thanks for reporting this. It looks like there are two issues here, one is that you are getting an incorrect error and the other one is actually an issue in SwiftPM's Git support.

The second issue arises because you have a file called Icon\r in your repository and the extra trailing \r character trips up SwiftPM. I was able to reproduce the issue and work around it by renaming that file to just Icon.

Replies

Thanks for reporting this. It looks like there are two issues here, one is that you are getting an incorrect error and the other one is actually an issue in SwiftPM's Git support.

The second issue arises because you have a file called Icon\r in your repository and the extra trailing \r character trips up SwiftPM. I was able to reproduce the issue and work around it by renaming that file to just Icon.
Nice find. I've removed the custom folder icon file now and the package installs smooth now. Thanks.
I also filed a bug for the underlying issue here: https://bugs.swift.org/browse/SR-13072

Thanks for reporting!