Skip to content

build(mcp): vendorer les deps → build hermétique (fix 403 proxy.golang.org) - #4

Merged
t0m-car merged 2 commits into
mainfrom
fix/vendor-deps
Jul 7, 2026
Merged

build(mcp): vendorer les deps → build hermétique (fix 403 proxy.golang.org)#4
t0m-car merged 2 commits into
mainfrom
fix/vendor-deps

Conversation

@t0m-car

@t0m-car t0m-car commented Jul 7, 2026

Copy link
Copy Markdown
Member

go mod download échoue au build : proxy.golang.org renvoie 403 sur github.com/segmentio/encoding@v0.5.4 (transitive du go-sdk) depuis la box VPS et en local, alors que la CI GitHub la télécharge sans souci. Résultat : le déploiement Dokploy (github-provider, serveur distant) échouait sans log exploitable.

Fix : go mod vendor (3,2 Mo committés) → build hermétique (aucun réseau, aucun proxy), reproductible partout. Dockerfile : suppression de go mod download, GOFLAGS=-mod=vendor GOPROXY=off. Build+vet+test vérifiés offline (GOPROXY=off).

https://claude.ai/code/session_01SsG4T6WHAC2RrTFJkBspf3

…g.org)

Le build échouait à `go mod download` : proxy.golang.org renvoie 403 sur
github.com/segmentio/encoding@v0.5.4 (dep transitive du go-sdk MCP) depuis
certaines IP (la box VPS ET local), alors que la CI GitHub l'obtient. Vendoring
= build sans réseau ni proxy, reproductible partout (box, CI, Dokploy github-provider).
Dockerfile : plus de go mod download, GOFLAGS=-mod=vendor GOPROXY=off.

Claude-Session: https://claude.ai/code/session_01SsG4T6WHAC2RrTFJkBspf3
@t0m-car
t0m-car merged commit 2339893 into main Jul 7, 2026
1 check passed
@t0m-car
t0m-car deleted the fix/vendor-deps branch July 7, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant