fix: correct gvisor replace directive to match module path - #26750
fix: correct gvisor replace directive to match module path#26750denis-at-coder wants to merge 4 commits into
Conversation
The replace directive was targeting 'gvisor.dev' but the actual module path declared in gvisor's go.mod is 'gvisor.dev/gvisor'. Since Go module replace directives require an exact module path match, the previous directive was a no-op, and the patched fork was never used. Fixes #20885
|
I have read the CLA Document and I hereby sign the CLA 1 out of 2 committers have signed the CLA. |
|
I have read the CLA Document and I hereby sign the CLA |
Summary
Fixes the gvisor
replacedirective ingo.modto target the correct module path.Problem
PR #23055 added a replace directive to use the coder/gvisor fork (which fixes an integer overflow causing
panic: length < 0crashes). However, the directive targeted the wrong module path:The actual module path declared in gvisor's
go.modisgvisor.dev/gvisor, notgvisor.dev. Go module replace directives require an exact module path match, so the previous directive was a no-op and the patched fork was never used.Fix
Validation
Verified locally with
go list -m:Before (no-op replace):
After (correct replace):
The
=>confirms the fork is now applied.go mod tidyandgo build ./tailnet/... ./codersdk/workspacesdk/...both pass.Fixes #20885
Investigation context
7a658db7b714) declaresmodule gvisor.dev/gvisorin its go.modgvisor.dev/[email protected](unpatched upstream), confirming the fork was not appliedpanic: length < 0ingvisor.dev/gvisor/pkg/tcpip/transport/tcp.(*sender).splitSegGenerated by Coder Agents on behalf of @denis-at-coder