Skip to content

publish: fail on a release tag the remote has at another commit, and replace a leftover local one #1082

Closed

Description

@goosewobbler

This was generated by AI.

Split out of #958's version-source slice (#1081). It doesn't depend on the version record, but the record makes it matter: a reverted or hand-lowered record can compute a version that was already released.

Problem

  • A standing-PR publish warns and skips a tag that already exists at another commit, then skips the already-published versions, so the release can finish having released nothing.
  • A direct publish fails on any local tag at another commit, including one a failed batch run left unpushed, which a re-run should replace.

Change

  • Creating a tag the remote has at another commit fails the release, in direct and standing-PR publishes, and the failure report says to raise the version record to at least the last released version rather than retry.
  • A local tag the remote doesn't have is replaced.
  • docs/troubleshooting.md's "tag already exists" entry describes both.

Acceptance criteria

  • Publish e2e with a bare remote: a remote collision fails before the tag is created; a leftover local tag is replaced and pushed.
  • A standing-PR publish fails on a remote collision and its failure report gives roll-forward guidance.

Lands before #1081, or in the same release.

Activity

  1. added this to the 0.48.0 milestone on Nov 23, 2026
  2. added
    type:bug
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions