Skip to content

fix: serve the moved tag when the pinned commit is gone and a hash is recorded - #85

Merged
traefiker merged 1 commit into
traefik:masterfrom
mmatur:fix/pinned-commit-gone
Oct 27, 2026
Merged

traefiker merged 1 commit into
traefik:masterfrom
mmatur:fix/pinned-commit-gone

Conversation

@mmatur

@mmatur mmatur commented Oct 27, 2026

Copy link
Copy Markdown
Member

What does this PR do?

When a tag moved after publication and GitHub no longer has the commit the Go module proxy pinned (history rewritten), the archive cannot be downloaded and the download fails with a 500.

In that case, the moved tag is now served, but only if a hash is already recorded for the version, so the plugin keeps working as before #83. Without a recorded hash, the version is not served, so a hash is never recorded from code the proxy did not pin.

Motivation

Two public versions are in this case today: agence-gaya/traefik-plugin-cloudflare v1.0.0 and madebymode/traefik-modsecurity-plugin v1.0.0.

More

  • Added/updated tests

@darkweaver87 darkweaver87 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@traefiker
traefiker merged commit edcc066 into traefik:master Oct 27, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug/fix a bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants