Skip to content

Fix module path so v2 releases are installable - #30

Merged
polymorcodeus merged 2 commits into
mainfrom
fix-v2
Sep 9, 2026
Merged

polymorcodeus merged 2 commits into
mainfrom
fix-v2

Conversation

@polymorcodeus

Copy link
Copy Markdown
Owner

Summary

Fixes the Go module path so tagged v2 releases can actually be installed. Every v2 tag from v2.0.0 through v2.4.0 shipped with module github.com/polymorcodeus/lnk, which is missing the /v2 suffix Go requires at major version 2 and up. That oversight made every v2 tag uninstallable (invalid version: module contains a go.mod file, so module path must match major version) and left go install ...@latest silently resolving to v1.5.0. This PR corrects it by moving the module to github.com/polymorcodeus/lnk/v2.

What's new

  • Module path - github.com/polymorcodeus/lnk becomes github.com/polymorcodeus/lnk/v2, matching the major-version suffix requirement.
  • Import paths - every internal import across cmd, service, internal, and tools (133 references across 66 files) is updated to the /v2 prefix.
  • Install docs - the README install command is updated to go install github.com/polymorcodeus/lnk/v2@latest.

Behavior changes / guardrails

  • The bare github.com/polymorcodeus/lnk@latest path keeps resolving to v1.5.0; v2 installs now use github.com/polymorcodeus/lnk/v2@latest.
  • Existing tags v2.0.0 through v2.4.0 remain uninstallable because they point at commits with the old path; the first installable v2 release is v2.4.1.

Testing

  • make check runs fmt, vet, lint, unit, and integration suites; all green.

@polymorcodeus polymorcodeus self-assigned this Sep 9, 2026
@polymorcodeus
polymorcodeus merged commit 65ff7d5 into main Sep 9, 2026
4 checks passed
@polymorcodeus
polymorcodeus deleted the fix-v2 branch September 9, 2026 20:14
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