Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ require (
github.com/pion/interceptor v0.1.47
github.com/pion/rtcp v1.2.17
github.com/pion/rtp v1.10.5
github.com/pion/rtp/v2 v2.0.0

@devin-ai-integration devin-ai-integration Bot Jul 12, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟑 Dependency upgrade left the project depending on two copies of the same library

A second copy of the RTP library is listed as a required direct dependency (github.com/pion/rtp/v2 v2.0.0 at go.mod:21) while every source file still uses the old copy, so the upgrade is incomplete and the extra entry is unused.
Impact: The project now declares an unused dependency alongside the old one; dependency-tidiness checks fail and the intended upgrade did not actually happen.

Unused v2 module requirement and incomplete go.sum entry

All Go sources still import github.com/pion/rtp (v1): localtrack.go:29, pkg/synchronizer/track.go:25, pkg/interceptor/pacerinteceptor.go:7, pkg/interceptor/limitsizeinteceptor.go:7, pkg/samplebuilder/samplebuilder.go:26, e2ee/trackdecryptor.go:22, plus tests and examples. Nothing imports github.com/pion/rtp/v2, so go mod tidy would drop the new require line (and any tidy-check in CI would flag the diff).

Additionally go.sum only contains the /go.mod hash for the new module (go.sum:236) and no h1: module-zip hash, so as soon as any code does import v2 the build fails with a missing go.sum entry. Note that pion also depends on v1 transitively via pion/webrtc/v4 and pion/interceptor, so a real migration requires updating those too.

Open in Devin Review

Was this helpful? React with πŸ‘ or πŸ‘Ž to provide feedback.

github.com/pion/sdp/v3 v3.0.19
github.com/pion/webrtc/v4 v4.2.18
github.com/stretchr/testify v1.11.1
Expand Down
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ github.com/pion/rtcp v1.2.17 h1:PxiT6L79yPZKtXIsXdG1eakBl6dtBj4x+4oVEL0DlSw=
github.com/pion/rtcp v1.2.17/go.mod h1:7kBpuBJaWwax4hzc/pgexY8vkOpvh8atgYDbaKZq0iU=
github.com/pion/rtp v1.10.5 h1:ip0HhO/wYZqQ4bKS+R99KnZh/GRCmIT0jDXikub7vlE=
github.com/pion/rtp v1.10.5/go.mod h1:Au8fc6cEByy8RLTwKTQTEeQqDB/SJDxwL4mZuxYA5Pk=
github.com/pion/rtp/v2 v2.0.0/go.mod h1:Vj+rrFbJCT3yxqE/VSwaOo9DQ2pMKGPxuE7hplGOlOs=
github.com/pion/sctp v1.11.1 h1:O4dIFyURw1KTST7w+gtD4gLeYXkhPa0xXLHMMoe/OSA=
github.com/pion/sctp v1.11.1/go.mod h1:7KFmTwLcoYgJs/Z+99nJvsWL0qDpuyloSI0RbAqlrz0=
github.com/pion/sdp/v3 v3.0.19 h1:1VMKs3gIkTQV5M3hNKfTAPrDXSNrYtOlmOD8+mSZUGQ=
Expand Down
Loading