Skip to content

Commit 7a5ee26

Browse files
committed
Fix CI: add GOPROXY=direct fallback, improve retry logic
1 parent 3f29f9b commit 7a5ee26

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
@@ -10,6 +10,7 @@ env:
1010
GONOSUMCHECK: github.com/orchestra-mcp/*
1111
GONOSUMDB: github.com/orchestra-mcp/*
1212
GOFLAGS: -mod=mod
13+
GOPROXY: "https://proxy.golang.org,direct"
1314

1415
jobs:
1516
test:
@@ -23,9 +24,10 @@ jobs:
2324

2425
- name: Download dependencies
2526
run: |
26-
for i in 1 2 3; do
27+
for i in 1 2 3 4 5; do
2728
go mod download && break
28-
echo "Retry $i: waiting for Go proxy to index..."
29+
echo "Attempt $i failed, retrying with GOPROXY=direct..."
30+
GOPROXY=direct go mod download && break
2931
sleep 15
3032
done
3133

0 commit comments

Comments
 (0)