stencilproject / Stencil

Stencil is a simple and powerful template language for Swift.
https://stencil.fuller.li
BSD 2-Clause "Simplified" License
2.34k stars 221 forks source link

Dependencies inconsistencies between CocoaPods and SPM #211

Closed AliSoftware closed 5 years ago

AliSoftware commented 6 years ago

Stencil 0.11.0 currently declare the following dependencies:

Not sure why there's an inconsistency in the PathKit versions between the two, and why SPM would need a dependency to Spectre while CocoaPods wouldn't

ilyapuchka commented 6 years ago

Stencil uses SPM to build and test, so it only needs test dependencies in Package manifest. PathKit versions should match indeed but I guess ~> 0.8.0 will also match 0.9 version when installed via CocoaPods

AliSoftware commented 6 years ago

Ok, I now get it about Spectre.

wrt PathKit, by definition, ~> 0.8.0 matches any 0.8.x where x > 0. But doesn't match 0.9. So no, CocoaPods won't fetch PathKit 0.9 with that spec definition