fix(library): drop dead enetx/surf so go install works #2508
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.52) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #2508"
general
weight: 0.35
mvanhorn
Summary
The enetx GitHub org was deleted. github.com/enetx/http3 v1.0.7 is gone from GitHub and proxy.golang.org, so every CLI that required github.com/enetx/surf (77 of them) failed a clean-cache
go install ...@latest. That includes the npm installer path. Bumping surf is not an option because newer surf needs Go 1.27, above the 1.26.11 floor.This PR ports every affected CLI to a uTLS transport modeled on the current generator template (
internal/generator/templates/chrome.go.tmpl) and cli-printing-press #5522:--timeoutstill bounds the whole request and the wait for response headersWhat Changed
newHTTPClientininternal/client/client.gonow callsnewChromeHTTPClient, defined in a newinternal/client/chrome_transport.gowith achrome_transport_test.go(verification on by default, h2, h1 fallback, caller headers kept). Scripted.- allrecipes: was ForceHTTP3; now HTTP/2 with HTTP/1.1 fallback (README/SKILL transport line updated; facebook-marketplace docs had the same stale HTTP/3 line)
- myfitnesspal: MFP transport and diary client wrap the new transport (exported
client.NewChromeHTTPClient)- recipe-goat, fpi-india (nsdl), pointhound (flights POST rewritten from surf's request API to net/http): use
client.NewChromeHTTPClient- table-reservation-goat: new
internal/chromehttppackage shared by the OpenTable and Tock sources; tock test builds a plain client- medium-reader, japan-theme-parks: copy in their own package; existing redirect policies kept
- navitime: keeps the Firefox identity it was verified with (uTLS HelloFirefox_Auto and Firefox headers)
go mod tidywith Go 1.26.11 and GOTOOLCHAIN=local. No go directive changed..printing-press-patches/surf-removed-utls-chrome-transport.json. No release ledger, changelog or version edits (post-merge automation owns those).Modules touched (77):
Validation
go mod tidy && go build ./... && go vet ./... && go test ./...in all 77 modules with Go 1.26.11, GOTOOLCHAIN=local. 75 pass. slickdeals (TestMigrate_ConcurrentFreshDB, SQLITE_BUSY) and apartments (TestRetryAfter_Epoch*) fail identically on unmodified main, so they are pre-existing and not touched here.go install ...@92000ad71841d08630c6c41c05981d1067b589eb(fresh GOPATH and GOMODCACHE) succeeded for digg, allrecipes, table-reservation-goat, navitime, myfitnesspal, pointhound, japan-theme-parks, medium-reader, fpi-india and ebaydigg-pp-cli top --topic techanddoctor(API and search reachable),allrecipes-pp-cli search lasagna(real results through the former HTTP/3 path),navitime-pp-cli places search Shinjuku --data-source live(Firefox profile)govulncheck ./...reports 0 reachable vulnerabilities in all 77 modules. The surf graph had pinned golang.org/x/net, andybalholm/brotli and klauspost/compress (and gorilla/websocket, gobwas/ws, x/text in a few CLIs) below their fixes, and the new transport calls x/net/http2 directly, so a second commit raises them to the first fixed versions (upgrade only, x/net v0.62.0). No go directive changed.Gaps / Follow-Up
🤖 Generated with Claude Code