-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from mineiros-io/ch4036-add-private-pkg-readme
docs: add go/git configuration for pvt repos to README.md
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,23 @@ go install github.com/mineiros-io/terradoc/cmd/terradoc@latest | |
We put great effort into keeping the main branch stable, so it should be safe | ||
to use **latest** to play around, but not recommended for long term automation | ||
since you won't get the same build result each time you run the install command. | ||
|
||
### Go/Git configuration for private repositories | ||
|
||
While this repository is private, there is some extra work in order to | ||
download and install it using **go install**. There is two main steps. | ||
First you need to configure git to use ssh instead of https: | ||
|
||
``` | ||
git config --global [email protected]:.insteadOf https://github.com/ | ||
``` | ||
|
||
This only needs to be done once and will change the **.gitconfig** on your | ||
host. Then you should always export **GOPRIVATE** for our mineiros-io repos | ||
before running go install: | ||
|
||
``` | ||
export GOPRIVATE=github.com/mineiros-io | ||
``` | ||
|
||
More info [here](https://golang.org/ref/mod#private-module-proxy-direct). |