Skip to content

GitHub Action: Use go mod download instead of go list; Rename `go… #1

GitHub Action: Use go mod download instead of go list; Rename `go…

GitHub Action: Use go mod download instead of go list; Rename `go… #1

Workflow file for this run

name: Go Proxy
on:
push:
permissions: {}
jobs:
go-mod-index:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v5
with:
cache: false
- run: go mod download -x github.com/${{ github.repository }}@${{ github.sha }}
env:
GOPROXY: https://proxy.golang.org
GOSUMDB: sum.golang.org
- run: go mod download -x github.com/${{ github.repository }}@${{ github.ref_name }}
env:
GOPROXY: https://proxy.golang.org
GOSUMDB: sum.golang.org