You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
setup-go/.github/workflows
George Adams 8f19afcc70
feat: add go-download-base-url input for custom Go distributions (#721)
* feat: add go-download-base-url input for custom Go distributions

Add support for downloading Go from custom sources such as Microsoft Go
(aka.ms). Users can specify a custom download base URL via the
`go-download-base-url` input or the `GO_DOWNLOAD_BASE_URL` environment
variable (input takes precedence).

When a custom URL is provided, the action skips the GitHub-hosted
manifest and attempts to resolve versions from the custom URL's JSON
listing. If the listing is unavailable (as with aka.ms redirect links),
it falls back to constructing the download URL directly from the
version, platform, and architecture.

Usage:
  - uses: actions/setup-go@v6
    with:
      go-version: '1.25'
      go-download-base-url: 'https://aka.ms/golang/release/latest'

Changes:
- action.yml: add go-download-base-url optional input
- installer.ts: add getInfoFromDirectDownload() for URL construction
  fallback, thread custom URL through getGo/getInfoFromDist/findMatch
- main.ts: read new input and GO_DOWNLOAD_BASE_URL env var
- setup-go.test.ts: add 12 unit tests for custom URL behavior
- microsoft-validation.yml: add E2E workflow testing Microsoft build of Go
  across ubuntu/windows/macos with versions 1.24 and 1.25
- README.md: document new input with Microsoft build of Go examples

* run prettier

* fixup PR review

* revert cache-save

* fixup

* handle distinct cache

* skip json for known URL

* fix bug in JSON with custom URL
7 days ago
..
basic-validation.yml Node 24 upgrade (#624) 7 months ago
check-dist.yml Node 24 upgrade (#624) 7 months ago
codeql-analysis.yml Add and configure ESLint and update configuration for Prettier (#341) 3 years ago
licensed.yml Add and configure ESLint and update configuration for Prettier (#341) 3 years ago
microsoft-validation.yml feat: add go-download-base-url input for custom Go distributions (#721) 7 days ago
publish-immutable-actions.yml Bump actions/checkout from 5 to 6 (#686) 2 months ago
release-new-action-version.yml Bump actions/publish-action from 0.3.0 to 0.4.0 (#641) 4 months ago
update-config-files.yml Format update-config-files.yml 3 years ago
versions.yml Bump actions/checkout from 5 to 6 (#686) 2 months ago
windows-validation.yml Bump actions/checkout from 5 to 6 (#686) 2 months ago