From c1a65b81fcbb60074b536a73ca084f7b2b28040a Mon Sep 17 00:00:00 2001 From: logikonline Date: Wed, 21 Jan 2026 04:31:13 -0500 Subject: [PATCH] fix(ci): use direct GOPROXY to avoid public proxy caching 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. --- .gitea/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index ced74fdc2c..7b403bdd79 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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 }}"