Skip to content

fix(registry): unpublish the tag an artifact was actually published with - #349

Merged
Sam123ben merged 1 commit into
mainfrom
fix/unpublish-versioned-tag
Aug 30, 2026
Merged

fix(registry): unpublish the tag an artifact was actually published with#349
Sam123ben merged 1 commit into
mainfrom
fix/unpublish-versioned-tag

Conversation

@Sam123ben

Copy link
Copy Markdown
Member

DELETE /api/registry/{plural}/{name} always asked upstream to remove the latest tag. Artifacts published with an explicit version get their version as the tag, so upstream 500s on the missing latest and the artifact can never be deleted (surfaced as an opaque 502).

Take the tag from the fetched envelope and fall back to latest only when none is recorded.

  • tests/unit + tests/integration: 2049 passed, 3 skipped.

@Sam123ben
Sam123ben merged commit 0b65548 into main Aug 30, 2026
8 checks passed
@Sam123ben
Sam123ben deleted the fix/unpublish-versioned-tag branch August 30, 2026 12:20
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