Skip to content

build(deps): bump quic-go to 0.60.0 via webtransport-go compat shim - #121

Merged
Quick104 merged 1 commit into
mainfrom
build/quic-go-webtransport-shim
Jun 10, 2026
Merged

Quick104 merged 1 commit into
mainfrom
build/quic-go-webtransport-shim

Conversation

@Quick104

@Quick104 Quick104 commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

engine.io (via socket.io) depends on zishang520/webtransport-go v0.9.1, which is pinned to old quic-go internals and breaks against newer quic-go releases, blocking dependabot's quic-go bump (#74).

Add internal/compat/zishang520-webtransport-go, a shim module that preserves the zishang520/webtransport-go API shape while delegating to the maintained quic-go/webtransport-go v0.10.0, wired in with a go.mod replace directive. The Dockerfiles COPY the shim before go mod download so the replace resolves in container builds.

Also bumps the Go toolchain to 1.26.4 and golang.org/x/crypto, x/sys, and x/image.

Closes #74.

Summary by CodeRabbit

  • Chores
    • Updated Go toolchain from version 1.26.3 to 1.26.4
    • Updated QUIC and WebTransport-related dependencies to latest versions
    • Modified Docker build configurations to include additional source files during the build process

engine.io (via socket.io) depends on zishang520/webtransport-go v0.9.1,
which is pinned to old quic-go internals and breaks against newer
quic-go releases, blocking dependabot's quic-go bump (#74).

Add internal/compat/zishang520-webtransport-go, a shim module that
preserves the zishang520/webtransport-go API shape while delegating to
the maintained quic-go/webtransport-go v0.10.0, wired in with a go.mod
replace directive. The Dockerfiles COPY the shim before go mod download
so the replace resolves in container builds.

Also bumps the Go toolchain to 1.26.4 and golang.org/x/crypto, x/sys,
and x/image.

Closes #74.

Co-Authored-By: Claude Fable 5 <[email protected]>
@Quick104
Quick104 merged commit 96117f6 into main Jun 10, 2026
1 check was pending
@Quick104
Quick104 deleted the build/quic-go-webtransport-shim branch June 10, 2026 00:08
@coderabbitai

coderabbitai Bot commented Jun 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 44a47aef-6e32-4eae-a8b5-bbb0a9df64fc

📥 Commits

Reviewing files that changed from the base of the PR and between 530cd59 and 184f24d.

⛔ Files ignored due to path filters (2)
  • go.sum is excluded by !**/*.sum
  • internal/compat/zishang520-webtransport-go/go.sum is excluded by !**/*.sum
📒 Files selected for processing (5)
  • Dockerfile
  • Dockerfile.dev
  • go.mod
  • internal/compat/zishang520-webtransport-go/compat.go
  • internal/compat/zishang520-webtransport-go/go.mod

📝 Walkthrough

Walkthrough

This PR adds a compatibility wrapper for the zishang520/webtransport-go library to bridge breaking API changes in quic-go v0.59+. It updates Go dependencies to v0.60.0 (including the reworked WebTransport APIs), introduces a local compatibility module that re-exports types and provides a Server adapter, and ensures Docker builds include this compatibility layer.

Changes

WebTransport Compatibility and Dependency Updates

Layer / File(s) Summary
Root go.mod dependency and toolchain updates
go.mod
Go toolchain incremented from 1.26.3 to 1.26.4, golang.org/x/\* packages updated, QUIC/WebTransport-related transitive dependencies bumped to newer versions, and a new replace directive added to map github.com/zishang520/webtransport-go to ./internal/compat/zishang520-webtransport-go.
WebTransport compatibility wrapper and module
internal/compat/zishang520-webtransport-go/compat.go, internal/compat/zishang520-webtransport-go/go.mod
New compatibility package in the local module re-exports WebTransport types/constants from quic-go/webtransport-go; introduces a Server struct that wraps the updated upstream API, exposing the HTTP/3 server as a value field while lazily delegating to the upstream implementation; forwards configuration fields and lifecycle methods (Serve, ListenAndServe, Upgrade, Close).
Docker build configuration
Dockerfile, Dockerfile.dev
Both Dockerfiles updated to copy internal/compat/zishang520-webtransport-go/ into the build context during the Go build stage, ensuring the compatibility module is available for go build.

🎯 2 (Simple) | ⏱️ ~12 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch build/quic-go-webtransport-shim

Comment @coderabbitai help to get the list of available commands and usage tips.

Quick104 added a commit that referenced this pull request Jun 11, 2026
…121)

engine.io (via socket.io) depends on zishang520/webtransport-go v0.9.1,
which is pinned to old quic-go internals and breaks against newer
quic-go releases, blocking dependabot's quic-go bump (#74).

Add internal/compat/zishang520-webtransport-go, a shim module that
preserves the zishang520/webtransport-go API shape while delegating to
the maintained quic-go/webtransport-go v0.10.0, wired in with a go.mod
replace directive. The Dockerfiles COPY the shim before go mod download
so the replace resolves in container builds.

Also bumps the Go toolchain to 1.26.4 and golang.org/x/crypto, x/sys,
and x/image.

Closes #74.

Co-authored-by: Claude Fable 5 <[email protected]>
Quick104 added a commit that referenced this pull request Jun 17, 2026
…121)

engine.io (via socket.io) depends on zishang520/webtransport-go v0.9.1,
which is pinned to old quic-go internals and breaks against newer
quic-go releases, blocking dependabot's quic-go bump (#74).

Add internal/compat/zishang520-webtransport-go, a shim module that
preserves the zishang520/webtransport-go API shape while delegating to
the maintained quic-go/webtransport-go v0.10.0, wired in with a go.mod
replace directive. The Dockerfiles COPY the shim before go mod download
so the replace resolves in container builds.

Also bumps the Go toolchain to 1.26.4 and golang.org/x/crypto, x/sys,
and x/image.

Closes #74.

Co-authored-by: Claude Fable 5 <[email protected]>
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