diff options
| author | demo <demo@antix1> | 2026-05-30 21:56:54 -0400 |
|---|---|---|
| committer | demo <demo@antix1> | 2026-05-30 21:56:54 -0400 |
| commit | 09e77351e1eb988c9c5e37e40cb8b511f7ae5140 (patch) | |
| tree | 8e78d7336a7340a8f078d2c9474f34926b269137 | |
| parent | 8c8f891a27b3c75e10aa0f4c664fa0052b72c107 (diff) | |
I was missing a colon in one spot. Also, it turns out you need to set
GOPRIVATE.
| -rw-r--r-- | posts/making-cgit-go-gettable.md | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/posts/making-cgit-go-gettable.md b/posts/making-cgit-go-gettable.md index 0c197ca..9c32f2a 100644 --- a/posts/making-cgit-go-gettable.md +++ b/posts/making-cgit-go-gettable.md @@ -61,10 +61,11 @@ Remembering the semicolons here is important. You can always use `sudo nginx -t` to test whether your current config is valid. -## Configure Git to use SSH for the Git server +## Configure Git to use SSH for your Git server Add this block to your home directory's `.gitconfig` file, making the -appropriate substitution for "example.com": +appropriate substitution for "example.com" (in my case it would be +`brandonirizarry.xyz`): ```ini [url "git@example.com:"] @@ -74,7 +75,7 @@ appropriate substitution for "example.com": Alternatively, you can issue the equivalent command line invocation: ``` -git config --global url."git@example.com".insteadOf "https://git.example.com/" +git config --global url."git@example.com:".insteadOf "https://git.example.com/" ``` Now, whenever you invoke `go get`, you'll be prompted for your SSH @@ -85,11 +86,13 @@ Linux *user* on your remote server that owns the directory containing all your Git repos. This syntax mirrors the one used when logging into the same server via SSH, viz. `ssh git@example.com`. -## Set GOPRIVATE (optional?) +## Set GOPRIVATE -I'm not sure I need to set this in my case, since AFAICT this has more +~~I'm not sure I need to set this in my case, since AFAICT this has more to do with close-sourcing code, which isn't my intention here. But I -threw it in just in case. +threw it in just in case.~~ + +UPDATE 5/30/2026: Yes, you need this. :) Since I want **all** my repos to be potentially installable as Go packages for now, so I use a glob to indicate that: |
