2
0

fix(ci): remove bad git URL rewrite rules from workflow
Some checks failed
Build and Release / Create Release (push) Has been skipped
Build and Release / Unit Tests (push) Successful in 3m13s
Build and Release / Lint (push) Failing after 4m27s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Has been skipped
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Has been skipped
Build and Release / Build Binaries (amd64, darwin, macos) (push) Has been skipped
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been skipped
Build and Release / Build Binary (linux/arm64) (push) Has been skipped
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 4m43s

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 <noreply@anthropic.com>
This commit is contained in:
2026-01-19 18:23:46 -05:00
parent 62f830004f
commit f0709e0e67

View File

@@ -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: ""