Skip to content

fix(core): avoid constant recompilation#2057

Open
zhu-he wants to merge 1 commit intoEricLBuehler:masterfrom
zhu-he:fix/build-script-recompilation
Open

fix(core): avoid constant recompilation#2057
zhu-he wants to merge 1 commit intoEricLBuehler:masterfrom
zhu-he:fix/build-script-recompilation

Conversation

@zhu-he
Copy link
Copy Markdown

@zhu-he zhu-he commented Apr 4, 2026

Currently, mistralrs-core recompiles on every run because build.rs looks for .git/HEAD in the subproject directory instead of the workspace root. Since the file isn't found, Cargo invalidates the build fingerprint every time.

Changes:

  • Updated git path to ../.git to match the workspace structure.
  • Added existence check to prevent issues when .git is missing.

Fixes the infinite recompilation cycle.

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