build(mcp): vendorer les deps → build hermétique (fix 403 proxy.golang.org) - #4
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
go mod downloadéchoue au build : proxy.golang.org renvoie 403 surgithub.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 dego mod download,GOFLAGS=-mod=vendor GOPROXY=off. Build+vet+test vérifiés offline (GOPROXY=off).https://claude.ai/code/session_01SsG4T6WHAC2RrTFJkBspf3