You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using carthage bootstrap --use-ssh on a Cartfile with a private repository. The private repository has a release with an attached binary. This command is run on a remote build machine where I set up the ssh keys for github.
Issue
Carthage always build the dependent project from the source. It won't download the binary version attached to the release, even if it's there.
I would expect it to download the binary instead.
Investigation
I tried to debug Carthage by building it locally and adding some logs, it seems that when it tries to fetch the release JSON on the private repository (e.g. https://api.github.com/foo/bar/FooBar/releases/tags/1.2.2]) it receives this response:
Is there a way to use the SSH keys for GitHub API requests? If not, can the username/token combination needed for the request be passed by command line?
The text was updated successfully, but these errors were encountered:
If you configure Git with a GitHub Personal Access Token, then Carthage should be able to authenticate for the GitHub API usage. (You can test that you're properly configured by cloning a private repo with Git over HTTPS.)
There are a couple items that haven't made it into a release yet that might also be helpful:
Following your first suggestion, I created an internet password entry in the keychain on the build machine with the username and token from GitHub. This seems to work, thanks for your help.
Context
I'm using
carthage bootstrap --use-ssh
on a Cartfile with a private repository. The private repository has a release with an attached binary. This command is run on a remote build machine where I set up the ssh keys for github.Issue
Carthage always build the dependent project from the source. It won't download the binary version attached to the release, even if it's there.
I would expect it to download the binary instead.
Investigation
I tried to debug Carthage by building it locally and adding some logs, it seems that when it tries to fetch the release JSON on the private repository (e.g. https://api.github.com/foo/bar/FooBar/releases/tags/1.2.2]) it receives this response:
That is the same response that I get with
because no authentication data is specified. If I run:
... I get the proper JSON.
Is there a way to use the SSH keys for GitHub API requests? If not, can the username/token combination needed for the request be passed by command line?
The text was updated successfully, but these errors were encountered: