GraphQLSwift / Graphiti

The Swift GraphQL Schema framework for macOS and Linux
MIT License
526 stars 66 forks source link

Latest version fails to compile #75

Closed icanzilb closed 2 years ago

icanzilb commented 2 years ago

Steps to reproduce:

git clone https://github.com/GraphQLSwift/Graphiti
cd Graphiti
swift build

The build fails with:

.build/checkouts/swift-nio/Sources/NIO/CircularBuffer.swift:114:1: error: type 'CircularBuffer<Element>' does not conform to protocol 'MutableCollection'
extension CircularBuffer: Collection, MutableCollection {
^
.build/checkouts/swift-nio/Sources/NIO/CircularBuffer.swift:114:1: error: unavailable subscript 'subscript(_:)' was used to satisfy a requirement of protocol 'MutableCollection'
extension CircularBuffer: Collection, MutableCollection {
^

due to a breaking change in swift-collections.

icanzilb commented 2 years ago

Opened a PR with a fix here: https://github.com/GraphQLSwift/Graphiti/pull/74

NeedleInAJayStack commented 2 years ago

Fixed by https://github.com/GraphQLSwift/Graphiti/pull/74

Thanks @icanzilb