Skip to content

Commit e63e6d7

Browse files
committed
Fix CI: add GONOSUMCHECK/GONOSUMDB env vars and retry logic for go mod download
1 parent 35a7bb2 commit e63e6d7

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ jobs:
1313
test:
1414
name: Test & Build
1515
runs-on: ubuntu-latest
16+
env:
17+
GONOSUMCHECK: github.com/orchestra-mcp/*
18+
GONOSUMDB: github.com/orchestra-mcp/*
19+
GOFLAGS: -mod=mod
1620
steps:
1721
- uses: actions/checkout@v4
1822

@@ -21,7 +25,12 @@ jobs:
2125
go-version: "1.23"
2226

2327
- name: Download dependencies
24-
run: go mod download
28+
run: |
29+
for i in 1 2 3; do
30+
go mod download && break
31+
echo "Retry $i: waiting for Go proxy to index..."
32+
sleep 15
33+
done
2534
2635
- name: Vet
2736
run: go vet ./...

0 commit comments

Comments
 (0)