diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 1c1871196a..fb250d62f7 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -40,13 +40,6 @@ jobs: go-version: ${{ env.GO_VERSION }} cache: false - - name: Configure git for public modules - run: | - # Set up URL rewriting so git uses public URL - git config --global url."https://git.marketally.com/".insteadOf "https://direct.git.marketally.com/" - # Clear VCS cache to force fresh fetch with rewritten URL - rm -rf "$(go env GOPATH)/pkg/mod/cache/vcs" || true - - name: Update vault dependency env: GOPRIVATE: "" @@ -96,13 +89,6 @@ jobs: go-version: ${{ env.GO_VERSION }} cache: false - - name: Configure git for public modules - run: | - # Set up URL rewriting so git uses public URL - git config --global url."https://git.marketally.com/".insteadOf "https://direct.git.marketally.com/" - # Clear VCS cache to force fresh fetch with rewritten URL - rm -rf "$(go env GOPATH)/pkg/mod/cache/vcs" || true - - name: Update vault dependency env: GOPRIVATE: "" @@ -160,13 +146,6 @@ jobs: go-version: ${{ env.GO_VERSION }} cache: false - - name: Configure git for public modules - run: | - # Set up URL rewriting so git uses public URL - git config --global url."https://git.marketally.com/".insteadOf "https://direct.git.marketally.com/" - # Clear VCS cache to force fresh fetch with rewritten URL - rm -rf "$(go env GOPATH)/pkg/mod/cache/vcs" || true - - name: Update vault dependency env: GOPRIVATE: "" @@ -352,25 +331,6 @@ jobs: go-version: ${{ env.GO_VERSION }} cache: false - - name: Configure git for public modules (Unix) - if: matrix.goos != 'windows' - run: | - # Set up URL rewriting so git uses public URL - git config --global url."https://git.marketally.com/".insteadOf "https://direct.git.marketally.com/" - # Clear VCS cache to force fresh fetch with rewritten URL - rm -rf "$(go env GOPATH)/pkg/mod/cache/vcs" || true - - - name: Configure git for public modules (Windows) - if: matrix.goos == 'windows' - shell: pwsh - run: | - # Set up URL rewriting so git uses public URL - git config --global url."https://git.marketally.com/".insteadOf "https://direct.git.marketally.com/" - # Clear VCS cache to force fresh fetch with rewritten URL - $gopath = (go env GOPATH) - $vcsPath = Join-Path $gopath "pkg\mod\cache\vcs" - if (Test-Path $vcsPath) { Remove-Item -Recurse -Force $vcsPath } - - name: Update vault dependency (Unix) if: matrix.goos != 'windows' env: @@ -640,13 +600,6 @@ jobs: chmod +x scripts/sync-vault.sh ./scripts/sync-vault.sh - - name: Configure git for public modules - run: | - # Set up URL rewriting so git uses public URL - git config --global url."https://git.marketally.com/".insteadOf "https://direct.git.marketally.com/" - # Clear VCS cache to force fresh fetch with rewritten URL - rm -rf "$(/usr/local/go/bin/go env GOPATH)/pkg/mod/cache/vcs" || true - - name: Update vault dependency env: GOPRIVATE: ""