mirror of
https://github.com/8b-is/go-setup.git
synced 2026-11-21 23:20:04 +01:00
8b-is Go toolchain e2e setup (one-liner + Homebrew)
- Shell 87.9%
- Ruby 12.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| Formula | ||
| CHANGELOG.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| README.md | ||
| SECURITY.md | ||
| setup-go.sh | ||
| setup-langs.sh | ||
go-setup
One-shot, idempotent Go toolchain setup for the 8b-is constellation, targeted at Apple Silicon Macs (M1 / M1 64GB).
One-liner
curl -fsSL https://raw.githubusercontent.com/8b-is/go-setup/main/setup-go.sh | bash
To inspect the detected Apple Silicon unified-memory profile (GOMEMLIMIT, GOGC, GOARCH=arm64, CGO_ENABLED=1) and 1b-go -> b8-go alias without modifying dotfiles or installing packages:
./setup-go.sh --check
What it does
- Installs Homebrew (if missing) and wires
/opt/homebrewintoPATH. - Installs Go via
brew install go. - Lays out
GOPATH=~/go,GOBIN=~/go/bin,GOPROXY=proxy.golang.org,directand persists them into~/.zprofile. - Tunes Apple Silicon unified memory per node —
GOARCH=arm64,CGO_ENABLED=1,GOGC=100, andGOMEMLIMITsized tohw.memsize(50 GiB / 20 GiB / 10 GiB for the 64GB / 32GB / 16GB nodes). - Symlinks
1b-go -> b8-go(the 1-bit / balanced ternary alias) into$GOBIN. - Installs the repos' expected tooling:
golangci-lint,staticcheck,gofumpt,air. - Verifies
go versionand the environment.
Safe to re-run; every step is a no-op when already satisfied.
Homebrew
brew tap 8b-is/go-setup
brew install --HEAD b8-go # also installs the 1b-go alias
The formula lives in Formula/b8-go.rb.
Languages (Zig · Idris · Perl)
Companion script for the other sovereign languages — idempotent, cross-platform (macOS via Homebrew, Linux via apt):
curl -fsSL https://raw.githubusercontent.com/8b-is/go-setup/main/setup-langs.sh | bash
Installs and verifies zig, idris2, and perl.
License
MIT — from love, from within.