Skip to content

Set GOPATH to consolidated XDG location - #21

Merged
Clsan merged 3 commits into
masterfrom
setup-gopath
Jul 14, 2026
Merged

Set GOPATH to consolidated XDG location#21
Clsan merged 3 commits into
masterfrom
setup-gopath

Conversation

@Clsan

@Clsan Clsan commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Go was installed via mise, but setup.sh never configured GOPATH, so a fresh setup would default to ~/go
  • Adds GOPATH=$HOME/.local/share/go and puts $GOPATH/bin on PATH, using the same append_line_if_missing pattern already used for mise

Test plan

  • Run setup.sh on a fresh machine (or re-run append_line_if_missing lines manually) and confirm .zshrc gets the two new export lines
  • go env GOPATH resolves to ~/.local/share/go
  • go install'd binaries are found on PATH

Clsan and others added 3 commits July 14, 2026 10:13
Go was installed via mise but nothing configured GOPATH, so a fresh
setup would default to ~/go instead of the relocated ~/.local/share/go.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
brew_install_cask retried failed cask installs after `brew update`,
but that only refreshes cask definitions, not a bad cached download
from the same run. Vendor CDNs for self-updating installers (e.g.
Telegram) occasionally serve a binary that no longer matches the
cask's pinned checksum, so the retry kept failing on the same stale
artifact. Force a clean re-fetch before retrying.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Three GUI/session-dependent commands aborted setup.sh under `set -e`
on the headless macOS runner:

- open -a Rectangle: launching a GUI app exits non-zero without a
  desktop session. Skip the launch under SETUP_NONINTERACTIVE (keep
  the launchOnLogin default, which is worth smoke-testing).
- killall Dock: exits non-zero ("No matching processes") if Dock
  isn't running. Make it best-effort — harmless even on a real Mac.
- activateSettings -u: needs a GUI session to reload; make it
  best-effort for the same reason.

Also pre-trust aws/tap (pre-tapped on GHA runners) so brew stops
printing the "not trusted" warning on every install/update.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Clsan
Clsan merged commit f3ccc61 into master Jul 14, 2026
3 checks passed
@Clsan
Clsan deleted the setup-gopath branch July 14, 2026 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant