Skip to content

fix: stop versioned go imports colliding on version segment#807

Merged
ivov merged 1 commit into
mainfrom
versioned-go-import-collisions
Jun 21, 2026
Merged

fix: stop versioned go imports colliding on version segment#807
ivov merged 1 commit into
mainfrom
versioned-go-import-collisions

Conversation

@ivov

@ivov ivov commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Go packages whose import path ends in a version suffix (/v2, /v3, ...) now resolve to their real package name instead of the version segment. Previously, importing two such packages reported an Import conflict.

import "go:github.com/pion/sdp/v3"
import "go:github.com/pion/dtls/v3"

fn main() {
  let _ = sdp.SessionDescription {}
  let _ = dtls.Config {}
}

Paths that are actyally named v1/v2 (e.g. k8s.io/api/core/v1) keep working, and a project's own modules are unaffected.

Fix #803

@ivov ivov merged commit 643e38f into main Jun 21, 2026
16 checks passed
@ivov ivov mentioned this pull request Jun 21, 2026
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.

Lisette bindgen emits import conflicts for github.com/pion/webrtc/v4

1 participant