-
Notifications
You must be signed in to change notification settings - Fork 0
Private Repository
Tractor Toolkit is currently a private repository. If you have access you can simply clone the repository to get a local copy. However, making programs with it requires you to allow the Go toolchain to clone the repository as well. Otherwise, you will get an error like this when it tries to pull it down as a dependency:
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
First, make sure you have an SSH key that is added to your GitHub account.
Next, we need to tell Git to use SSH instead of HTTPS when working with github.com. This command will configure this:
git config --global [email protected]:.insteadOf https://github.com/
Last, we need to set an environment variable GOPRIVATE
telling the Go tooling to expect a private repository for
certain packages. In this case, packages on the tractor.dev
domain.
export GOPRIVATE=tractor.dev/*
For this to persist across terminal sessions, you'll need to add that export to your shell init scripts. On Mac, this
is typically ~/.zshrc
.
When everything is setup properly, you should be able to go get
Tractor Toolkit:
go get tractor.dev/toolkit