Use Go module proxy for downloading toolchains as per official documentation
Maintainers usually reply within 5 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 58/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- github-actions, go, typescript
Research direction
Start with the Go toolchain download documentation and the referenced src/cmd/go/internal/modfetch/toolchain.go implementation, then locate the action's current toolchain download logic. Follow the module proxy protocol and checksum behavior described in the issue; done means toolchains are downloaded through the Go module proxy rather than a hard-coded URL.
Written by the indexing model from the issue text.
Description
Overview
https://github.com/actions/setup-go/pull/665 changed the URL used for downloading toolchains. This action should use the same method as the go tool itself instead.
Description
This GHA action should download Go toolchains using the Go module proxy which is the method used by the go tool instead of hard-coding a specific download URL.
The official Go documentation provides that Go toolchains are packaged like pseudo-modules and are distributed using the Go module proxy (proxy.golang.org) with checksums available in the Go checksum database (sum.golang.org). Specifically, that documentation states:
These toolchains are packaged as special modules with module path golang.org/toolchain and version v0.0.1-goVERSION.GOOS-GOARCH. Toolchains are downloaded like any other module, meaning that toolchain downloads can be proxied by setting GOPROXY and have their checksums checked by the Go checksum database.
For example, a list of all toolchain versions can be retrieved from https://proxy.golang.org/golang.org/toolchain/@v/list and the toolchain for go 1.25.3 on macOS ARM can be downloaded from http://proxy.golang.org/golang.org/toolchain/@v/v0.0.1-go1.25.3.darwin-arm64.zip. The checksum to use can be retrieved from https://sum.golang.org/lookup/golang.org/[email protected] (with appropriate verification of the log signatures).
Relevant documentation:
Justification:
The official Go documentation states what to do and the go tool implements that method. This action should not deviate from the official method.
Other benefits:
- This action gets the performance benefits from using the Go module proxy and any CDN it uses.
- Any one running a private Go module proxy (e.g., in an enterprise) would be able to serve toolchains with no Internet access. (This assumes another PR for this action to support changing the URL of the Go module proxy.)
- It should be more future-proof since it replicates what the
gotool does.
Are you willing to submit a PR?
Maybe.
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 684
- Avg merge
- 12d 23h
- Merged PRs (30d)
- 3
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from actions/setup-go
-
Provide an option to skip the Go SDK tool-cache write for ephemeral / parallel self-hosted runnersOpenfeature request
Difficulty 3/5 1-2 days Newbie friendliness 72/100
actions/setup-go#792 · 4 comments ·
Maintainers usually reply within 5 days
-
feature request
Difficulty 4/5 3-5 days Newbie friendliness 45/100
actions/setup-go#757 · 2 comments ·
Maintainers usually reply within 5 days
-
feature request
Difficulty 3/5 1-2 days Newbie friendliness 55/100
actions/setup-go#749 · 2 comments ·
Maintainers usually reply within 5 days
-
feature request
Difficulty 3/5 1-2 days Newbie friendliness 58/100
actions/setup-go#746 · 8 comments ·
Maintainers usually reply within 5 days
-
go-version-file does not parse .mod files other than go.modPossibly taken @kaovilai claimed this 239 days ago. Openfeature request
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
actions/setup-go#736 · 1 comment · 1 reaction ·
Maintainers usually reply within 5 days
All issues in actions/setup-go
Similar issues
-
db-d1-sqlite: upsert is aliased to updateOne, so payload.kv.set never inserts new keysPossibly taken @pcbeingused333 claimed this today. OpenBug db: d1-sqlite Payload OSS
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
payloadcms/payload#19766 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
device-management-toolkit/sample-web-ui#3711 ·
Maintainers usually reply within 1 day
-
bug impact:low Team: SecuritySolution Team:Defend Workflows v9.6.0
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
elastic/kibana#306401 · 3 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
agentes-chat/agentes-chat#927 ·
Maintainers usually reply within 1 day
-
Closing a pinned tab jumps to the Tabs section instead of the next open pinned tabPossibly taken @seenimohamed claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ardia-browser/ardia#2769 ·
Maintainers usually reply within 1 day