vapor-community / gzip-provider

gzip support for Vapor
MIT License
21 stars 7 forks source link

SPM: dependency graph could not be satisfied #5

Open mikecsh opened 8 years ago

mikecsh commented 8 years ago

I get the following error:

Error: swift-package: error: The dependency graph could not be satisfied (https://github.com/vapor/vapor.git)

when running vapor fetch when including gzip-provider in my Package.swift like so:

.Package(url: "https://github.com/vapor/vapor.git", majorVersion: 1, minor: 1), .Package(url: "https://github.com/czechboy0/gzip-vapor.git", majorVersion: 0, minor: 3),

I believe this is due to the version of vapor referenced in gzip-providers Package.swift being different?

sroebert commented 8 years ago

Actually now it completely stops working because there are two different HTTP libraries included, one from Vapor and one form Zewo.

jhonny-me commented 8 years ago

@sroebert any plan for adapt to Vapor HTTP library?

sroebert commented 8 years ago

Actually I would love to have this as well. I wanted to make a pull request, but basically the Zewo implementation will have to change to use the Vapor HTTP library, which I can imagine will not happen. I was kind of waiting for a response by @czechboy0

jhonny-me commented 7 years ago

@sroebert check this out: https://github.com/jhonny-me/GzipMiddleware

mikecsh commented 7 years ago

@jhonny-me thanks for this - I've submitted a pull request to add support for application/json Content-Type responses