From f0709e0e671912afa5b11e9645fa78515b41a87c Mon Sep 17 00:00:00 2001 From: logikonline Date: Mon, 19 Jan 2026 18:23:46 -0500 Subject: [PATCH] fix(ci): remove bad git URL rewrite rules from workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The workflow was adding git config rules that rewrote direct.git.marketally.com to git.marketally.com, which is backwards and breaks checkout on runners that can't reach git.marketally.com due to hairpin NAT. The runners already have correct URL rewrite rules in their gitconfig. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .gitea/workflows/build.yml | 47 -------------------------------------- 1 file changed, 47 deletions(-) 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: ""