Skip to content

fix: remove hard-coded paths and patch overrides#400

Open
noahgift wants to merge 1 commit intomainfrom
fix/remove-hard-coded-paths
Open

fix: remove hard-coded paths and patch overrides#400
noahgift wants to merge 1 commit intomainfrom
fix/remove-hard-coded-paths

Conversation

@noahgift
Copy link
Contributor

@noahgift noahgift commented Mar 4, 2026

Summary

  • Remove [patch.crates-io] path overrides for entrenar, realizar, and trueno-gpu from root Cargo.toml (self-patch aprender = { path = "." } retained)
  • Remove path = "/home/noah/src/alimentar" from crates/apr-cli/Cargo.toml
  • Replace hard-coded /home/noah/... paths in src/ with $HOME-based resolution via std::env::var("HOME")
  • Replace hard-coded model path fallback in train.rs with APR_MODEL_PATH env var

Files changed

  • Cargo.toml — removed 3 sibling path patches
  • crates/apr-cli/Cargo.toml — removed alimentar path override
  • crates/apr-cli/src/commands/train.rs — env var fallback for model path
  • src/models/qwen2/falsification.rs — HOME-relative paths
  • src/models/qwen2/tests.rs — HOME-relative paths
  • src/format/onnx/tests.rs — HOME-relative path

Test plan

  • cargo check --workspace --exclude apr-cli passes
  • Clean-room CI gate validates build

Spec: sovereign-stack-protected-branch-strategy.md (Section 5)

🤖 Generated with Claude Code

Remove [patch.crates-io] path overrides and absolute path references.
These break clean-room CI builds.

Spec: sovereign-stack-protected-branch-strategy.md (Section 5)

Co-Authored-By: Claude Opus 4.6 <[email protected]>
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