Swift collections - is it missing an explicit tag for the 1.1.0 release?

I was just working on adding Swift Collections as a dependency to a Swift 5.6 related project, and glancing through the readme it looked like version 1.1.0 of the package was what I should aim for. However, when I used the stanza provided in the README, SwiftPM was unable to resolve the dependencies.

    dependencies: [
        .package(
          url: "https://github.com/apple/swift-collections.git",
          .upToNextMajor(from: "1.1.0")
        )
      ],

As I looked in the repo, there's tags for the 1.0.x versions, but no tag for the 1.1.0 - and it's not listed in the GitHub releases. I'm guessing that perhaps this missing tag is the reason it's not resolving.

Am I missing something obvious about adding it to my project, or is this a tag that could be added in? It looks like the repo has a release/1.1 branch, should that be sufficient for SwiftPM to use?

4 Likes

I assume this is an expected behavior since 1.1.0 is not fully ready.

See Milestones - apple/swift-collections · GitHub

3 Likes

Thanks @Kyle-Ye - I didn't notice that and was going off the README alone.

That's exactly right.