Skip to content

Fix broken Cargo.toml: tonic/tower/tracing moved outside [dependencies]#9

Merged
schenksj merged 2 commits into
mainfrom
upgrade/quickwit-upstream-main
Mar 30, 2026
Merged

Fix broken Cargo.toml: tonic/tower/tracing moved outside [dependencies]#9
schenksj merged 2 commits into
mainfrom
upgrade/quickwit-upstream-main

Conversation

@schenksj
Copy link
Copy Markdown
Collaborator

Summary

  • The [package.metadata.cargo-machete] section added in Upgrade to upstream quickwit main; point tantivy dep at upgrade/tantivy-0.26 #8 was inserted in the middle of the [dependencies] block in quickwit-common/Cargo.toml
  • TOML interprets [section-header] as starting a new section, so tonic, tower, and tracing were silently parsed as metadata rather than dependencies
  • This caused unresolved import tracing/tower/tonic errors when compiling as a git dependency from external crates
  • Fix: move the metadata section below the dependency declarations

Test plan

  • cargo check passes in tantivy4java after pinning to the new commit

🤖 Generated with Claude Code

schenksj and others added 2 commits March 30, 2026 19:23
The [package.metadata.cargo-machete] section was inserted in the middle
of the [dependencies] block, causing tonic, tower, and tracing to be
parsed as metadata rather than dependencies. Move the metadata section
below the dependency declarations.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Update tantivy rev to match the merged indextables/tantivy main so that
the quickwit workspace and tantivy4java use the same tantivy version,
avoiding duplicate crates in the dependency graph.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@schenksj schenksj merged commit 3026b22 into main Mar 30, 2026
0 of 4 checks passed
@schenksj schenksj deleted the upgrade/quickwit-upstream-main branch March 30, 2026 23:54
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