Skip to content

ci: verify release tag against the facade crate version - #35

Merged
pentatonick merged 1 commit into
mainfrom
fix/publish-version-check
Jul 15, 2026
Merged

ci: verify release tag against the facade crate version#35
pentatonick merged 1 commit into
mainfrom
fix/publish-version-check

Conversation

@pentatonick

Copy link
Copy Markdown
Owner

Problem

The v0.0.8 publish run failed:

Tag v0.0.8 does not match workspace version v0.0.7

The "Verify tag matches workspace version" step read .packages[0].version
from cargo metadata and asserted it equalled the pushed tag. Since
release-plz versions each crate independently, unchanged crates
(geometry-tag, geometry-derive) correctly stay on their previous version
(0.0.7) while the rest move to 0.0.8. .packages[0] can resolve to one of
those laggards, so the check failed even though the release is correct.

Fix

Verify the tag against the facade crate boost_geometry specifically —
the crate the release tag actually tracks — instead of an arbitrary
.packages[0]. Empty-result guard added.

The downstream publish loop already tolerates per-crate versions (it skips
crates already on crates.io), so no other change is needed. Per-crate
versioning is intended behaviour, not a bug — unchanged crates keep their
published version.

Verification

  • New filter yields the facade version 0.0.8 on the release commit → matches
    v0.0.8 → step passes.
  • Old .packages[0] filter returned 0.0.7 → the observed failure.
  • publish.yml re-parsed as valid YAML.

Note

This fixes the check going forward. To re-publish v0.0.8, the v0.0.8
tag must be re-pointed at a commit that includes this fix (the tag currently
points at 730a5c7, which predates it) — a maintainer action, not done here.

The publish workflow read `.packages[0].version` from cargo metadata and
asserted it equalled the pushed tag. Because release-plz versions each crate
independently, an unchanged crate (geometry-tag, geometry-derive) can lag the
release, and `.packages[0]` may resolve to one of those laggards — failing the
check even though the release is correct (v0.0.8 failed with "does not match
workspace version v0.0.7").

Verify the tag against the facade crate `boost_geometry` specifically, which
is what the release tag tracks. The downstream publish loop already tolerates
per-crate versions (it skips crates already on crates.io), so no other change
is needed.
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@pentatonick
pentatonick merged commit 1ed4d76 into main Jul 15, 2026
3 checks passed
@pentatonick
pentatonick deleted the fix/publish-version-check branch July 15, 2026 06:44
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.

2 participants