From 883f9c36547d2fb4d5b1e421d6748119ac18e8b3 Mon Sep 17 00:00:00 2001 From: Chris Guidry Date: Thu, 6 Aug 2026 09:52:20 -0400 Subject: [PATCH] Fetch Go modules through the spindle's Athens cache GOPROXY points at the Athens sidecar on the spindle pod, reached as host.docker.internal from step containers, with proxy.golang.org and direct as fallbacks so a down cache slows a build instead of failing it. Co-Authored-By: Claude Fable 5 --- .tangled/workflows/ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.tangled/workflows/ci.yml b/.tangled/workflows/ci.yml index a701809..0e29669 100644 --- a/.tangled/workflows/ci.yml +++ b/.tangled/workflows/ci.yml @@ -21,6 +21,10 @@ steps: CGO_ENABLED: "0" GOCACHE: "/tangled/workspace/.cache/go-build" GOMODCACHE: "/tangled/workspace/.cache/go-mod" + # The spindle pod carries an Athens sidecar; host.docker.internal + # is the docker host gateway, which is that pod. The fallbacks + # keep builds working when the sidecar is down. + GOPROXY: "http://host.docker.internal:3000,https://proxy.golang.org,direct" command: | ./check-coverage @@ -29,6 +33,10 @@ steps: CGO_ENABLED: "0" GOCACHE: "/tangled/workspace/.cache/go-build" GOMODCACHE: "/tangled/workspace/.cache/go-mod" + # The spindle pod carries an Athens sidecar; host.docker.internal + # is the docker host gateway, which is that pod. The fallbacks + # keep builds working when the sidecar is down. + GOPROXY: "http://host.docker.internal:3000,https://proxy.golang.org,direct" KO_DOCKER_REPO: "atcr.io/guid.foo/wicket" command: | export VERSION="$(date -u +%Y%m%d%H%M%S)-$(git rev-parse --short HEAD)" -- 2.51.2