fix(ci): use direct GOPROXY to avoid public proxy caching
Some checks failed
Build and Release / Create Release (push) Successful in 0s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 2m35s
Build and Release / Lint (push) Successful in 5m16s
Build and Release / Unit Tests (push) Successful in 5m24s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Successful in 2m52s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Successful in 6m15s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Successful in 5m22s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 8h4m47s
Build and Release / Build Binary (linux/arm64) (push) Has been cancelled
Some checks failed
Build and Release / Create Release (push) Successful in 0s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 2m35s
Build and Release / Lint (push) Successful in 5m16s
Build and Release / Unit Tests (push) Successful in 5m24s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Successful in 2m52s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Successful in 6m15s
Build and Release / Build Binaries (arm64, darwin, macos) (push) Successful in 5m22s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 8h4m47s
Build and Release / Build Binary (linux/arm64) (push) Has been cancelled
Set GOPROXY to 'direct' for all vault dependency update steps to bypass the public Go proxy. This ensures private dependencies are fetched directly from source and prevents caching issues with private modules.
This commit is contained in:
@@ -335,6 +335,7 @@ jobs:
|
||||
if: matrix.goos != 'windows'
|
||||
env:
|
||||
GOPRIVATE: ""
|
||||
GOPROXY: direct
|
||||
run: |
|
||||
set -x
|
||||
VAULT_VERSION="${{ steps.vault.outputs.version }}"
|
||||
@@ -353,6 +354,7 @@ jobs:
|
||||
shell: pwsh
|
||||
env:
|
||||
GOPRIVATE: ""
|
||||
GOPROXY: direct
|
||||
run: |
|
||||
$vaultVersion = "${{ steps.vault-win.outputs.version }}"
|
||||
Write-Host "Building with vault $vaultVersion"
|
||||
@@ -567,7 +569,7 @@ jobs:
|
||||
if: startsWith(github.ref, 'refs/tags/v') && needs.lint.result == 'success' && needs.create-release.result == 'success'
|
||||
env:
|
||||
CGO_ENABLED: 1
|
||||
GOPROXY: https://proxy.golang.org,direct
|
||||
GOPROXY: direct
|
||||
GOPRIVATE: git.marketally.com
|
||||
GONOSUMDB: git.marketally.com
|
||||
steps:
|
||||
@@ -603,6 +605,7 @@ jobs:
|
||||
- name: Update vault dependency
|
||||
env:
|
||||
GOPRIVATE: ""
|
||||
GOPROXY: direct
|
||||
run: |
|
||||
set -x
|
||||
VAULT_VERSION="${{ steps.vault.outputs.version }}"
|
||||
|
||||
Reference in New Issue
Block a user