Carthage: Cant add a dependency without updating all existing dependencies

Created on 28 Oct 2015  路  7Comments  路  Source: Carthage/Carthage

so i have the following cart file:

github "Alamofire/Alamofire" ~> 3.0
github "SwiftyJSON/SwiftyJSON"
github "mxcl/PromiseKit" ~> 3.0

All good. now i want to add a dependency so i add the following line:

github "Quick/Nimble"

The only i way i can get carthage to check this out and build it is to do carthage update. However this will update the version number of all the dependencies changing my carthage.resolved.

carthage checkout doesnt fetch my new dependency, nor does carthage bootstrap. What am i supposed to do here?

Most helpful comment

This was implemented in https://github.com/Carthage/Carthage/pull/972. You can now do carthage update XXX.

All 7 comments

Yup! this is a dupe of #610.

I disagree this is a duplicate. I'm not complaining about the rebuild of all my other dependencies, while that is quite annoying.

The real issue is that it updates the version numbers of all of my other dependencys. This is very bad if I had stable versions of my other dependencies in my cart.reaolved. I want to be in control of update my dependencies on a more granular basis

Then specify an explicit version number in your Cartfile and not an approximate one using the ~> operator.

I know but this feels like a work around to the problem that the update command won't take any arguments

+1

+1 Did this ever get fixed?

This was implemented in https://github.com/Carthage/Carthage/pull/972. You can now do carthage update XXX.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abbeyjackson picture abbeyjackson  路  3Comments

billypchan picture billypchan  路  3Comments

yonaskolb picture yonaskolb  路  3Comments

itinance picture itinance  路  3Comments

akaffenberger picture akaffenberger  路  3Comments