-
-
Notifications
You must be signed in to change notification settings - Fork 5
Add GOPROXY fallback for Go module proxy failures #2038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: devantler <26203420+devantler@users.noreply.github.com>
✅
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR addresses Go module proxy failures (HTTP 403 errors from storage.googleapis.com) that were blocking GitHub Actions workflows by adding GOPROXY=https://proxy.golang.org,direct environment variable to all Go build and test steps in the affected workflows.
Changes:
- Added GOPROXY fallback configuration to Go module download, build, and test steps across CI workflows and composite actions
- Uses the standard Go proxy (
https://proxy.golang.org) withdirectfallback to fetch from source when proxy is unavailable
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.github/workflows/ci.yaml |
Added GOPROXY to coverage generation step |
.github/actions/daily-test-improver/coverage-steps/action.yml |
Added GOPROXY to module download, build, and test steps |
.github/actions/daily-perf-improver/build-steps/action.yml |
Added GOPROXY to build and test steps |
.github/actions/cache-ksail-binary/action.yaml |
Added GOPROXY to binary build step (covers both go generate and go build) |
Signed-off-by: Nikolai Emil Damm <nikolaiemildamm@icloud.com>

GitHub Actions workflows were failing when the Go module proxy (
storage.googleapis.com) returned HTTP 403 errors during module downloads, blocking builds and test runs.Changes
Added
GOPROXY=https://proxy.golang.org,directto all Go build and test steps:.github/actions/daily-test-improver/coverage-steps/action.yml- module download, build, test steps.github/actions/daily-perf-improver/build-steps/action.yml- build and test steps.github/actions/cache-ksail-binary/action.yaml- binary build step.github/workflows/ci.yaml- coverage generation stepThe
directfallback instructs Go to fetch modules directly from source repositories when the proxy is unavailable.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.