Skip to content

Add a workflow to yank a crates.io version - #10

Merged
Zenofex merged 1 commit into
mainfrom
chore/yank-workflow
Sep 26, 2026
Merged

Zenofex merged 1 commit into
mainfrom
chore/yank-workflow

Conversation

@Zenofex

@Zenofex Zenofex commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

bootintel-cli 0.4.1 needs yanking. The crate was renamed to bootintel, and until the old name is yanked, two names install a working bootintel binary, which is the ambiguity the rename existed to remove.

It cannot be done from a laptop. The registry token lives only as a repository secret, which is where a publish credential belongs, and GitHub secrets cannot be read back, only used inside Actions. So the yank runs where the publish ran, with the same secret.

workflow_dispatch only, with no defaults, so it cannot fire by accident. Takes a reason for the run log, and refuses a version that is not on the registry so a typo fails before reaching crates.io. Unyank is the same workflow with the action flipped, because yanking is reversible where publishing is not.

Documented in docs/releasing.md.

bootintel-cli 0.4.1 needs yanking: the crate was renamed to bootintel and
until that old name is yanked, two names install a working `bootintel`, which
is the exact ambiguity the rename removed.

It could not be done from this machine. The registry token lives only as a
repository secret, which is where a publish credential belongs, and GitHub
secrets cannot be read back, only used inside Actions. So the yank runs where
the publish ran, with the same secret.

workflow_dispatch only, no defaults, so it cannot fire by accident. It takes a
reason for the run log, and refuses a version that is not on the registry so a
typo fails before reaching crates.io. Unyank is the same workflow with the
action flipped, because yanking is reversible where publishing is not.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@Zenofex
Zenofex merged commit 218bbc2 into main Sep 26, 2026
11 checks passed
@Zenofex
Zenofex deleted the chore/yank-workflow branch September 26, 2026 22:55
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