Skip to content

markdown: strip module versions from GitHub source links - #28

Open
team-humaki wants to merge 1 commit into
go-chi:masterfrom
team-humaki:markdown-strip-module-version
Open

team-humaki wants to merge 1 commit into
go-chi:masterfrom
team-humaki:markdown-strip-module-version

Conversation

@team-humaki

Copy link
Copy Markdown

Fixes #24.

Module-cache paths include @vX.Y.Z, so URLMap replacements produced 404s like .../blob/master/@v5.0.11/middleware/logger.go. Strip the version segment and start the path at github.com/ when it sits under pkg/mod.

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

1 participant