fix(deps): strip Gitea registry refs and bump to crates.io versions (mirror terraphim-kg-agents#654e707) - #1
Open
AlexMikhalev wants to merge 1 commit into
Open
Conversation
terraphim-agents was unbuildable from crates.io-only sources because
the workspace pinned to old Gitea-registry-only versions and had
'.cargo/config.toml' + per-crate 'registry = "terraphim"' references
that resolved to more than one candidate on cargo check.
This commit mirrors the fix that was already applied to
terraphim-kg-agents in commit 654e707
('chore: strip Gitea registry refs for crates.io pub'):
1. .cargo/config.toml: drop the [registries.terraphim] block.
2. workspace + per-crate Cargo.toml: drop ', registry = "terraphim"'
from every terraphim_* dep (12 lines in workspace, 16 in
crates/terraphim_agent/Cargo.toml).
3. workspace + per-crate Cargo.toml: bump terraphim_* versions
to the latest on crates.io:
- terraphim_types 1.20.2 -> 1.20.4
- terraphim_settings 1.0.0 -> 1.20.4
- terraphim_persistence 1.20.2 -> 1.20.4
- terraphim_config 1.20.2 -> 1.20.4
- terraphim_automata 1.20.2 -> 1.20.4
- terraphim_middleware 1.0.0 -> 1.20.3
- terraphim_rolegraph 1.20.2 -> 1.20.4
- terraphim_update 1.20.2 -> 1.20.4
- terraphim_hooks 1.20.2 -> 1.20.4
- terraphim_test_utils 1.20.2 -> 1.20.3
- terraphim_sessions 1.20.4 -> 1.21.1
4. Remove the terraphim_mcp_search dep + its re-export from
crates/terraphim_agent. The pinned 0.1.2 was Gitea-registry-only;
the 0.2.0 on crates.io has a different API. The re-export was
not referenced anywhere in the workspace; safe to drop.
5. Drop the terraphim_* entries from the [patch.crates-io] block in
workspace Cargo.toml.
Verified: cargo check passes (after the prior build was failing with
3x E0308 'expected &Thesaurus, found Thesaurus' errors that were a
downstream symptom of the dual-version resolution).
Co-Authored-By: Shimaguru (MiniMax-M3) <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
Fixes the unbuildable state of
terraphim-agentsfrom a crates.io-only checkout. The workspace was pinned to old versions that only existed in the terraphim Gitea registry, plus had, registry = "terraphim"references in 12 dep declarations and a[registries.terraphim]block in.cargo/config.toml. Combined, this produced a "resolved to more than one candidate" error oncargo check(and a downstreamE0308 expected &Thesaurus, found Thesauruserror incrates/terraphim_agent/src/service.rs).What this PR does
Mirrors the fix that was already applied to
terraphim-kg-agentsin commit654e707("chore: strip Gitea registry refs for crates.io pub"):.cargo/config.toml— drop the[registries.terraphim]blockCargo.toml— drop, registry = "terraphim"from 12 + 16 = 28 dep declarationsCargo.toml— bumpterraphim_*versions to the latest on crates.io:terraphim_types1.20.2 → 1.20.4terraphim_settings1.0.0 → 1.20.4terraphim_persistence1.20.2 → 1.20.4terraphim_config1.20.2 → 1.20.4terraphim_automata1.20.2 → 1.20.4terraphim_middleware1.0.0 → 1.20.3terraphim_rolegraph1.20.2 → 1.20.4terraphim_update1.20.2 → 1.20.4terraphim_hooks1.20.2 → 1.20.4terraphim_test_utils1.20.2 → 1.20.3terraphim_sessions1.20.4 → 1.21.1terraphim_mcp_search = "0.1.2"dep + itspub usere-export fromcrates/terraphim_agent. The 0.1.2 version was Gitea-registry-only; the 0.2.0 on crates.io has a different API. The re-export was not referenced anywhere in the workspace.terraphim_*entries from the[patch.crates-io]block in workspaceCargo.toml.Verification
cargo checkpasses (was previously failing with 3× E0308 type errors downstream of the dual-version conflict).References
terraphim-kg-agentsat commit654e707terraphim-service,terraphim-core,terraphim-config-persistence,terraphim-ai— sweep in progress