Skip to content

fix: Correct module path to v3 - #435

Merged
keelerm84 merged 1 commit into
v3from
mk/fix-v3-module-path
Aug 20, 2026
Merged

fix: Correct module path to v3#435
keelerm84 merged 1 commit into
v3from
mk/fix-v3-module-path

Conversation

@keelerm84

@keelerm84 keelerm84 commented Aug 20, 2026

Copy link
Copy Markdown
Member

The go.mod on this branch still declared the module as
github.com/launchdarkly/sdk-test-harness/v2 while the branch is tagged
v3.x.x. Go requires the module path of a major version >= 2 to end in
the matching /vN, so neither .../v2@v3.2.0-alpha.9 nor
.../v3@v3.2.0-alpha.9 resolved. Anything importing the harness as a
library could not fetch a v3 tag at all.

Update the module directive and rewrite the 108 files that import it.
Tags already published keep the old path; only tags cut after this
change will resolve.


Note

Overview
Fixes Go module resolution for v3 tags by renaming the module from github.com/launchdarkly/sdk-test-harness/v2 to .../v3 and rewriting internal imports to match.

Go requires /vN in the module path for major versions ≥ 2. The branch was already tagged v3.x while go.mod still said /v2, so neither .../v2@v3... nor .../v3@v3... could be fetched. Already-published tags keep the old path; only tags cut after this change will resolve as /v3.

Reviewed by Cursor Bugbot for commit f4a06d8. Bugbot is set up for automated code reviews on this repo. Configure here.

The go.mod on this branch still declared the module as
github.com/launchdarkly/sdk-test-harness/v2 while the branch is tagged
v3.x.x. Go requires the module path of a major version >= 2 to end in
the matching /vN, so neither .../v2@v3.2.0-alpha.9 nor
.../v3@v3.2.0-alpha.9 resolved. Anything importing the harness as a
library could not fetch a v3 tag at all.

Update the module directive and rewrite the 108 files that import it.
Tags already published keep the old path; only tags cut after this
change will resolve.
@keelerm84
keelerm84 marked this pull request as ready for review August 20, 2026 15:23
@keelerm84
keelerm84 requested a review from a team as a code owner August 20, 2026 15:23
@keelerm84
keelerm84 merged commit 8f3ce46 into v3 Aug 20, 2026
7 checks passed
@keelerm84
keelerm84 deleted the mk/fix-v3-module-path branch August 20, 2026 15:25
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.

2 participants