Skip to content

Comments

fix: move migrations into zeph-memory for crates.io publishing#704

Merged
bug-ops merged 1 commit intomainfrom
fix/memory-migrations-path
Feb 21, 2026
Merged

fix: move migrations into zeph-memory for crates.io publishing#704
bug-ops merged 1 commit intomainfrom
fix/memory-migrations-path

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Feb 21, 2026

Summary

  • Move migrations/ from workspace root into crates/zeph-memory/migrations/
  • Update sqlx::migrate! path from ../../migrations to ./migrations

sqlx::migrate! resolves paths relative to CARGO_MANIFEST_DIR. When cargo publish packages the crate, only the crate directory is included in the tarball, so the workspace-level migrations/ directory was absent, causing a build failure.

Test plan

  • cargo +nightly fmt --check passes
  • cargo clippy --workspace -- -D warnings passes
  • cargo nextest run --workspace --lib --bins — 2241 passed
  • cargo publish -p zeph-memory --dry-run

sqlx::migrate! macro resolves paths relative to CARGO_MANIFEST_DIR,
which breaks when the crate is packaged for crates.io since the
workspace root migrations/ directory is not included in the tarball.
@github-actions github-actions bot added bug Something isn't working size/XS memory Persistence and memory rust and removed size/XS labels Feb 21, 2026
@bug-ops bug-ops enabled auto-merge (squash) February 21, 2026 03:49
@bug-ops bug-ops merged commit 0d484c0 into main Feb 21, 2026
20 checks passed
@bug-ops bug-ops deleted the fix/memory-migrations-path branch February 21, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working memory Persistence and memory rust

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant