Skip to content

fix(ci): add missing version fields for crates.io publishing#573

Merged
AlexMikhalev merged 1 commit intomainfrom
fix/crates-io-publish-567
Feb 23, 2026
Merged

fix(ci): add missing version fields for crates.io publishing#573
AlexMikhalev merged 1 commit intomainfrom
fix/crates-io-publish-567

Conversation

@AlexMikhalev
Copy link
Copy Markdown
Contributor

Summary

  • Add version = "1.0.0" to path-only dependencies that break cargo publish
  • Add terraphim_router and terraphim_spawner to the publish script's crate list

Root Cause

The v1.10.0 release failed at Publish Rust crates to crates.io with:

error: all dependencies must have a version requirement specified when publishing.
dependency `terraphim_router` does not specify a version

terraphim_service depends on terraphim_router with path = "../terraphim_router" but no version field. When cargo publish packages a crate, it strips the path and uses only the version to resolve from crates.io. Without a version, it fails.

Additionally, terraphim_router and terraphim_spawner were not in publish-crates.sh's dependency-ordered crate list, so they would never be published even if the version was specified.

Changes

File Change
crates/terraphim_service/Cargo.toml Add version = "1.0.0" to terraphim_router dep
crates/terraphim_router/Cargo.toml Add version = "1.0.0" to terraphim_types and terraphim_persistence deps
crates/terraphim_spawner/Cargo.toml Add version = "1.0.0" to terraphim_types and terraphim_router deps
scripts/publish-crates.sh Add terraphim_router and terraphim_spawner to CRATES array

Test plan

  • cargo check -p terraphim_router -p terraphim_spawner -p terraphim_service passes
  • Re-tag v1.10.0 after merge to trigger full release rebuild
  • Verify "Publish Rust crates to crates.io" step passes

Generated with Terraphim AI

terraphim_service depends on terraphim_router with a path-only
dependency (no version field). cargo publish requires all deps to
have a version when publishing to crates.io.

Changes:
- Add version = "1.0.0" to terraphim_router dep in terraphim_service
- Add version fields to path deps in terraphim_router (types, persistence)
- Add version fields to path deps in terraphim_spawner (types, router)
- Add terraphim_router and terraphim_spawner to publish-crates.sh

Co-Authored-By: Terraphim AI <noreply@anthropic.com>
@AlexMikhalev AlexMikhalev merged commit c3190dd into main Feb 23, 2026
4 of 5 checks passed
@AlexMikhalev AlexMikhalev deleted the fix/crates-io-publish-567 branch February 23, 2026 10:17
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