tgrapperon / swift-dependencies-additions

More dependencies for `swift-dependencies`
MIT License
298 stars 39 forks source link

TCA 1.2.0 compatibility #85

Closed rzolin closed 12 months ago

rzolin commented 12 months ago

I am using Tuist to build the project and using latest TCA v1.2.0. But when I fetch the dependencies I am getting the error: Dependencies could not be resolved because root depends on 'swift-dependencies-additions' 0.1.0..<1.0.0 and root depends on 'swift-composable-architecture' 1.2.0..<2.0.0. when trying to link the package.

error: Dependencies could not be resolved because root depends on 'swift-dependencies-additions' 0.1.0..<1.0.0 and root depends on 'swift-composable-architecture' 1.2.0..<2.0.0.
'swift-dependencies-additions' is incompatible with 'swift-composable-architecture' because 'swift-composable-architecture' 1.2.0 depends on 'xctest-dynamic-overlay' 1.0.0..<2.0.0 and no versions of 'swift-composable-architecture' match the requirement 1.2.1..<2.0.0.
If 'swift-dependencies-additions' 0.1.0..<1.0.0 and 'swift-composable-architecture' 1.2.0 then 'xctest-dynamic-overlay' 0.8.0..<1.0.0 because 'swift-dependencies-additions' 0.5.2 depends on 'xctest-dynamic-overlay' 0.8.0..<1.0.0 and 'swift-composable-architecture' 1.2.0 depends on 'swift-dependencies' 1.0.0..<2.0.0.
'swift-dependencies-additions' {0.1.0..<0.5.2, 0.5.3..<1.0.0} practically depends on 'swift-dependencies' 0.1.0..<1.0.0 or 'xctest-dynamic-overlay' 0.8.0..<1.0.0 because 'swift-dependencies-additions' 0.5.0 depends on 'swift-dependencies' 0.4.0..<1.0.0 and 'swift-dependencies-additions' 0.5.1 depends on 'xctest-dynamic-overlay' 0.8.0..<1.0.0.
'swift-dependencies-additions' {0.1.0..<0.5.0, 0.5.3..<1.0.0} practically depends on 'swift-dependencies' 0.1.0..<1.0.0 because 'swift-dependencies-additions' 0.3.2 depends on 'swift-dependencies' 0.1.0..<1.0.0 and 'swift-dependencies-additions' 0.4.0 depends on 'swift-dependencies' 0.1.0..<1.0.0.
'swift-dependencies-additions' {0.1.0..<0.3.2, 0.3.3..<0.4.0, 0.4.1..<0.5.0, 0.5.3..<1.0.0} practically depends on 'swift-dependencies' 0.1.0..<1.0.0 because 'swift-dependencies-additions' 0.3.0 depends on 'swift-dependencies' 0.1.0..<1.0.0 and 'swift-dependencies-additions' 0.3.1 depends on 'swift-dependencies' 0.1.0..<1.0.0.
'swift-dependencies-additions' {0.1.0..<0.3.0, 0.3.3..<0.4.0, 0.4.1..<0.5.0, 0.5.3..<1.0.0} practically depends on 'swift-dependencies' 0.1.0..<1.0.0 because 'swift-dependencies-additions' 0.1.3 depends on 'swift-dependencies' 0.1.0..<1.0.0 and 'swift-dependencies-additions' 0.2.0 depends on 'swift-dependencies' 0.1.0..<1.0.0.
'swift-dependencies-additions' {0.1.0..<0.1.3, 0.1.4..<0.2.0, 0.2.1..<0.3.0, 0.3.3..<0.4.0, 0.4.1..<0.5.0, 0.5.3..<1.0.0} practically depends on 'swift-dependencies' 0.1.0..<1.0.0 because 'swift-dependencies-additions' 0.1.1 depends on 'swift-dependencies' 0.1.0..<1.0.0 and 'swift-dependencies-additions' 0.1.2 depends on 'swift-dependencies' 0.1.0..<1.0.0.
'swift-dependencies-additions' {0.1.0..<0.1.1, 0.1.4..<0.2.0, 0.2.1..<0.3.0, 0.3.3..<0.4.0, 0.4.1..<0.5.0, 0.5.3..<1.0.0} practically depends on 'swift-dependencies' 0.1.0..<1.0.0 because 'swift-dependencies-additions' 0.1.0 depends on 'swift-dependencies' 0.1.0..<1.0.0.
'swift-dependencies-additions' {0.1.0, 0.1.4..<0.2.0, 0.2.1..<0.3.0, 0.3.3..<0.4.0, 0.4.1..<0.5.0, 0.5.3..<1.0.0} practically depends on 'swift-dependencies' 0.1.0..<1.0.0 because no versions of 'swift-dependencies-additions' match the requirement {0.1.4..<0.2.0, 0.2.1..<0.3.0, 0.3.3..<0.4.0, 0.4.1..<0.5.0, 0.5.3..<1.0.0} and 'swift-dependencies-additions' 0.1.0 depends on 'swift-dependencies' 0.1.0..<1.0.0.

Any help would be appreciated

mbrandonw commented 12 months ago

Hi @rzolin, this isn't an issue with the library. You have incompatible dependencies specified, and the error message tells you what you need to do. You are depending on a version of swift-dependency-additions that depends on a version of xctest-dynamic-overlay that conflicts with the version TCA depends on.

Seems like you just need to update your swift-dependencies-additions to the newest version, which is 1.0.0.

I am going to convert this to a discussion since it is not an issue with the library.