Carthage: 'carthage bootstrap' will not run on CircleCI

Created on 30 Jun 2015  路  12Comments  路  Source: Carthage/Carthage

After getting to 'carthage bootstrap', I get an error message:

Username for 'https://github.com': Username for 'https://github.com':

How can I fix this?

checkout help wanted question

All 12 comments

You need to make sure git and carthage can access your credentials to authenticate with GitHub.

Hey @mdiep , I forgot to mention I'm running in CircleCI, how do I go about configuring it for that?

I've never used CircleCI, so I have no idea. You might want to talk to them about it.

Also, having this issue. @jamesdo did you figure it out?

0.8 is released. #605 and #648 merged in that release would help.

Did anyone succeeded to run Carthage on CircleCI ?

Even with v0.8 and the GITHUB_ACCESS_TOKEN variable, I get an error when trying to clone a private repo.

Updates?

I personally solved my problem with the private repo by adding a "Checkout SSH key" in my project settings.

Same here, even after adding "Checkout SSH key" in circle ci settings

Recently got this on CircleCI:

A shell task failed with exit code 128:
fatal: could not read Username for 'github.com': terminal prompts disabled
carthage bootstrap returned exit code 1
Action failed: carthage bootstrap

Seems like a similar issue. Other CircleCI projects using Carthage are fine, however this one includes a private dependency. Tried adding the "Checkout SSH key" in project settings, but no luck.

Carthage uses HTTPS by default. You'll also need to use the --use-ssh flag if you add an SSH key.

Telling Carthage to use SSH in my circle.yml configuration file resolved the issue for me. Thanks!

Was this page helpful?
0 / 5 - 0 ratings