# Package Collection Format

**URL:** <https://forums.swift.org/t/package-collection-format/42071>\
**Category:** Package Manager\
**Tags:** packagemanager\
**Created:** [November 17, 2020, 12:54am UTC](https://forums.swift.org/t/package-collection-format/42071 "2020-11-17T00:54:02Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![yim\_lee](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/yim_lee/32/12026_2.png) [@yim\_lee](https://forums.swift.org/u/yim_lee)\
**Post date:** [December 7, 2020, 10:41pm UTC](https://forums.swift.org/t/package-collection-format/42071/16 "2020-12-07T22:41:10Z")

</div>

@mattt, in response to your [questions](https://forums.swift.org/t/se-0291-2nd-review-package-collections/42369/12):

Version-specific manifest/tag selection was definitely brought up, but we haven't decided what we want to do yet. It's something we will revisit before shipping the feature.

> [@SE-0291 (2nd review): Package Collections](https://forums.swift.org/t/se-0291-2nd-review-package-collections/42369/12):
>
> What do you think about representing Swift support as a cross-product / matrix of `verifiedSwiftVersions` and `verifiedPlatforms` ?

Are you suggesting something like this?

```
{
  "verifiedSwiftVersions": [
    {
      "name": "5.2",
      "verifiedPlatforms": [{ "name": "macOS" }, { "name": "Linux" }]
    },
    {
      "name": "5.3",
      "verifiedPlatforms": [...]
    }
  ]
}

```

I think it's reasonable, though I modeled it after how [swiftpackageindex.com](http://swiftpackageindex.com) presents such data ([example](https://swiftpackageindex.com/apple/swift-nio)) and would be curious to see @daveverwer/@finestructure's opinion on this.

> [@SE-0291 (2nd review): Package Collections](https://forums.swift.org/t/se-0291-2nd-review-package-collections/42369/12):
>
> Should there be a way to communicate compatibility exceptions somehow?

I think this kind of information should be part of the package's README or release notes. In other words, it is the package developers' rather than collection publishers' responsibility to explain why a language version and/or platform is not supported.

> [@SE-0291 (2nd review): Package Collections](https://forums.swift.org/t/se-0291-2nd-review-package-collections/42369/12):
>
> Could you speak more to the rationale behind the `revision` value in the JSON payload? Is the intention for that to be used for cache invalidation?

It's mainly a way for collection publishers/users to reference different versions of a collection. We don't intend to interpret it in any meaningful way.

---

_[View the full topic](https://forums.swift.org/t/package-collection-format/42071)._
