Skip to content

chore(deps): bump vendored gorilla/websocket to v1.5.3#41

Open
moralpriest wants to merge 1 commit into
DEROFDN:community-devfrom
moralpriest:chore/deps/gorilla-websocket-v1.5.3
Open

chore(deps): bump vendored gorilla/websocket to v1.5.3#41
moralpriest wants to merge 1 commit into
DEROFDN:community-devfrom
moralpriest:chore/deps/gorilla-websocket-v1.5.3

Conversation

@moralpriest

@moralpriest moralpriest commented Jul 14, 2026

Copy link
Copy Markdown

Summary

Drop-in vendor source swap of github.com/gorilla/websocket from the old vendored copy to upstream v1.5.3, as part of the dependency-prep track ahead of a future Go toolchain bump (see #40 for the nbio precedent).

  • Verified backward-compatible: zero consumer changes across all 13 call sites — derod /ws (cmd/derod/rpc/websocket_server.go), walletapi rpcserver + xswd, dero-miner, explorer, and the glue/rwc adapter (glue/rwc/rwc.go; wasm path uses coder/websocket and is unaffected).
  • Test added: TestGorillaWebsocketRoundTrip (cmd/derod/rpc/gorilla_websocket_test.go) exercises both the Upgrader (server) and Dialer (client) for a text echo.
  • Builds under the repo's go 1.17 directive: v1.5.3 targets go 1.12; the new tls_handshake.go / tls_handshake_116.go are go1.17 / !go1.17 build-tagged, matching the toolchain. No new transitive requires (self-contained).
  • Removed vs old vendor: client_clone*.go, conn_write*.go, trace*.go (absorbed into conn.go/client.go upstream). No go.mod/go.sum/modules.txt changes (repo convention: vendor-only, no requires).

Verification

  • go build ./... → green
  • go vet ./cmd/derod/rpc/ ./cmd/derod/ ./cmd/dero-miner/ ./cmd/explorer/explorerlib/ ./glue/... ./walletapi/... → clean except a pre-existing unrelated warning cmd/derod/main.go:1064 unreachable code (untouched by this change)
  • go test ./cmd/derod/rpc/ -run TestGorillaWebsocketRoundTrip → PASS

Note

A pre-existing go vet warning in cmd/derod/main.go:1064 ("unreachable code") is unrelated to this change and left untouched to keep the PR focused.

Drop-in vendor source swap of github.com/gorilla/websocket from the old
vendored copy to upstream v1.5.3. Verified backward-compatible: zero
consumer changes across all 13 call sites (derod /ws, walletapi rpcserver +
xswd, dero-miner, explorer, glue/rwc adapter). Adds
TestGorillaWebsocketRoundTrip exercising both the Upgrader (server) and
Dialer (client) for a text echo.

Builds under the repo's go 1.17 directive (v1.5.3 targets go 1.12; the new
tls_handshake.go / tls_handshake_116.go are go1.17 / !go1.17 build-tagged,
matching the toolchain).

Note: a pre-existing `go vet` warning in cmd/derod/main.go:1064
("unreachable code") is unrelated to this change and left untouched.
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