ci: update Go proxy mirror and disable GOSUMDB in CI
Update GOPROXY to use go.iranserver.com instead of go.devneeds.ir for dependency downloads. Disable GOSUMDB validation to speed up the build process and avoid potential checksum mismatches.
This commit is contained in:
2
.github/workflows/ci-cd.yml
vendored
2
.github/workflows/ci-cd.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
|||||||
run: git clone "${{ secrets.G_CLONE_URL }}" .
|
run: git clone "${{ secrets.G_CLONE_URL }}" .
|
||||||
|
|
||||||
- name: Set go proxy mirror
|
- name: Set go proxy mirror
|
||||||
run: go env -w GOPROXY=https://go.devneeds.ir,direct && go env -w GOSUMDB="sum.golang.org https://go-sum.devneeds.ir"
|
run: go env -w GOPROXY=https://go.iranserver.com/repository/go/ && go env -w GOSUMDB=off
|
||||||
|
|
||||||
- name: Download dependencies
|
- name: Download dependencies
|
||||||
run: go mod download
|
run: go mod download
|
||||||
|
|||||||
Reference in New Issue
Block a user