GitHub Action: Use go mod download
instead of go list
; Rename `go…
#1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |