Skip to content

Commit aa516a9

Browse files
committed
Fix CI: add GOPROXY=direct fallback, improve retry logic
1 parent 095eb09 commit aa516a9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
GONOSUMCHECK: github.com/orchestra-mcp/*
1818
GONOSUMDB: github.com/orchestra-mcp/*
1919
GOFLAGS: -mod=mod
20+
GOPROXY: "https://proxy.golang.org,direct"
2021
steps:
2122
- uses: actions/checkout@v4
2223

@@ -26,9 +27,10 @@ jobs:
2627

2728
- name: Download dependencies
2829
run: |
29-
for i in 1 2 3; do
30+
for i in 1 2 3 4 5; do
3031
go mod download && break
31-
echo "Retry $i: waiting for Go proxy to index..."
32+
echo "Attempt $i failed, retrying with GOPROXY=direct..."
33+
GOPROXY=direct go mod download && break
3234
sleep 15
3335
done
3436

0 commit comments

Comments
 (0)