Skip to content

ci: allow dirty working tree for cargo publish#25

Merged
tbille merged 1 commit into
mainfrom
ci/allow-dirty-publish
Apr 28, 2026
Merged

ci: allow dirty working tree for cargo publish#25
tbille merged 1 commit into
mainfrom
ci/allow-dirty-publish

Conversation

@tbille
Copy link
Copy Markdown
Member

@tbille tbille commented Apr 28, 2026

Summary

  • Adds --allow-dirty flag to cargo publish in the release workflow

Why

The "Set version from tag" step modifies Cargo.toml in-place (via sed) without committing the change. By default cargo publish rejects uncommitted changes, causing the workflow to fail with:

error: 1 files in the working directory contain changes that were not yet committed into git:
Cargo.toml

The --allow-dirty flag is the correct fix here since the modification is intentional — the tag is the source of truth for the version.

@tbille tbille merged commit 192d597 into main Apr 28, 2026
7 checks passed
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