Carthage: Question: How to get the very latest (most recent commit) version of a given repository?

Created on 16 Jul 2015  路  3Comments  路  Source: Carthage/Carthage

The Cartfile documentation makes the assertion:

If no version requirement is given, any version of the dependency is allowed.

with the contradictory example:

Use the latest version

github "jspahrsummers/xcconfigs"

Furthermore, it is not stated, but from testing, I infer that latest, is actually the version of the latest tag. Is this interpretation correct? And if so, how does one specify the very latest commit - do you have to manually check and specify the latest commit, or is there a simpler way?

And as a side point, it would help to give an example of checking out based on a commit hash, on my first pass, I didn't realize that the quotes were significant, and this foiled me.

Most helpful comment

Actually, it turns out that you can achieve this by specifying "head" as the version (insert proper nomenclature):

github "jspahrsummers/xcconfigs" "head"

per my cross post to Stackoverflow:

http://stackoverflow.com/questions/31459847/carthage-how-to-get-the-very-latest-version-of-a-given-repository/31460014#31460014

All 3 comments

The latest version refers to something that has an actual _version_鈥攁 release or tag. If you want the most latest commit, you need to specify the branch you want to pin to.

Closed - thanks for the quick response.

(Though the documentation / example inconsistency could / should still be fixed).

Actually, it turns out that you can achieve this by specifying "head" as the version (insert proper nomenclature):

github "jspahrsummers/xcconfigs" "head"

per my cross post to Stackoverflow:

http://stackoverflow.com/questions/31459847/carthage-how-to-get-the-very-latest-version-of-a-given-repository/31460014#31460014

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abbeyjackson picture abbeyjackson  路  3Comments

billypchan picture billypchan  路  3Comments

3lvis picture 3lvis  路  3Comments

mdiep picture mdiep  路  3Comments

pmhood picture pmhood  路  3Comments