fix(release): swap publish-ask / publish-crate ordering#85
Merged
Conversation
The v0.2.0 release failed at the `Publish sqlrite crate to crates.io` step: failed to select a version for the requirement `sqlrite-ask = "^0.2"` candidate versions found which didn't match: 0.1.25, 0.1.24, ... Root cause: the publish ordering reflected the **pre-v0.1.19** dep direction (`sqlrite-ask → sqlrite-engine`) — but the v0.1.19 dep-direction-flip retrospective records that sqlrite-ask became a pure-string-in/string-out adapter, and the engine took on the sqlrite-ask dependency (gated by the engine's `ask` feature). Through 0.1.x this latent bug was masked: the engine's published version requirement was `^0.1`, and old `sqlrite-ask 0.1.x` versions were already on crates.io, so the engine publish resolved cleanly. At v0.2.0 the bumped requirement (`^0.2`) had no matching crate and the publish failed loudly. Fix: - publish-ask now runs FIRST (depends only on detect + tag-all). No internal SQLRite path-deps after the dep-direction flip. - publish-crate (engine) now waits on publish-ask. Comment updated to flag the latent bug + the v0.1.19 retrospective. - publish-mcp's `needs: [..., publish-crate, publish-ask]` is unchanged — sqlrite-mcp still depends on the engine. Resulting chain: detect → tag-all → publish-ask → publish-crate → publish-mcp. This unblocks the v0.2.0 cut once re-triggered via workflow_dispatch (or via cutting v0.2.1 if the partial v0.2.0 state warrants a fresh release rather than catching up). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The v0.2.0 release (Action run 25290833060) failed at `Publish sqlrite crate to crates.io`:
```
failed to select a version for the requirement `sqlrite-ask = "^0.2"`
candidate versions found which didn't match: 0.1.25, 0.1.24, ...
```
Root cause: the publish ordering reflected the pre-v0.1.19 dep direction (`sqlrite-ask → sqlrite-engine`) — but the v0.1.19 dep-direction-flip retrospective (roadmap.md L488) records that sqlrite-ask became pure-string-in/string-out and the engine took on the sqlrite-ask dependency (gated by the `ask` feature). Through 0.1.x this latent bug was masked because the engine's published version requirement was `^0.1` and old `sqlrite-ask 0.1.x` versions were already on crates.io. The v0.2.0 bump (`^0.2`) had no matching crate yet, so the publish failed loudly.
Fix
Resulting chain: `detect → tag-all → publish-ask → publish-crate → publish-mcp`.
Path forward for v0.2.0
After this merges, two options to finish the v0.2.0 cut:
I'd recommend A — the duplicate-publish failures are noisy but harmless, and it keeps the release pipeline as the single source of truth for v0.2.0's ship state.
🤖 Generated with Claude Code