Skip to content

fix: strip module version from GitHub source links#26

Open
leno23 wants to merge 1 commit into
go-chi:masterfrom
leno23:fix/github-links-strip-module-version-24
Open

fix: strip module version from GitHub source links#26
leno23 wants to merge 1 commit into
go-chi:masterfrom
leno23:fix/github-links-strip-module-version-24

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

  • Strip @vX.Y.Z segments from module cache file paths when generating GitHub source URLs (fixes 404 links for chi v5 middleware, etc.).
  • Add unit test for githubSourceURL.
  • Add README with install and basic usage (including URLMap example).

Fixes #24
Fixes #22

Test plan

  • go test ./...

Module cache paths include @vX.Y.Z segments that produced 404 GitHub
URLs. Strip them when building source links.

Also add a README with install and usage examples.

Fixes go-chi#24
Fixes go-chi#22

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Generated hyperlinks are not correct README update

1 participant