Carthage always fetch the original repo instead the forked one?

Created on 22 Mar 2016  路  8Comments  路  Source: Carthage/Carthage

Hi! I forked a repository and made some changes to it. Then, I specified my repo URL in the Carthage file, but when I run carthage update, it always fetches and tries to build the original one. Or maybe it's my repo after all, but it is not seeing latest changes.

Is this a bug or am I missing something? I'm using latest Carthage version (0.15.2). Thanks.

Most helpful comment

I found a workaround.

Switching the repo in the Cartfile from:

github "patricks/Swift-Prompts.git"

to:

git "https://github.com/patricks/Swift-Prompts.git" "master"

works for me.

All 8 comments

This sounds like a caching bug. Have you tried deleting the Carthage cache at ~/Library/Caches/org.carthage.CarthageKit?

Yes, I tried that but it keeps cloning the original version (or an outdated version of my fork)...

I have seen this as well. It was introduced in version 0.15. When I installed 0.14 the latest commit was fetched.

I have the same problem 馃槥

I found a workaround.

Switching the repo in the Cartfile from:

github "patricks/Swift-Prompts.git"

to:

git "https://github.com/patricks/Swift-Prompts.git" "master"

works for me.

Thanks @patricks! That is the only workaround that worked for me (switching to a previous Carthage version didn't work)

@jfsagasti If you are specifying a branch in your Cartfile, this may be the same as #1191 and should be fixed by #1202, I think.

I'm going to preemptively close this because it sounds like a duplicate of #1191.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

akaffenberger picture akaffenberger  路  3Comments

yonaskolb picture yonaskolb  路  3Comments

JustinJiaDev picture JustinJiaDev  路  3Comments

3lvis picture 3lvis  路  3Comments

justinmakaila picture justinmakaila  路  4Comments