Skip to content

Harden Windows cached clone pin checks in deps/build.jl - #122

Merged
terasakisatoshi merged 1 commit into
mainfrom
fix/windows-build-cache-pin-check
Jul 7, 2026
Merged

Harden Windows cached clone pin checks in deps/build.jl#122
terasakisatoshi merged 1 commit into
mainfrom
fix/windows-build-cache-pin-check

Conversation

@terasakisatoshi

Copy link
Copy Markdown
Member

Summary

  • Normalize the pinned commit and git rev-parse inputs to String so Julia 1.12 strip does not pass a SubString and accidentally invalidate the cached deps/.tensor4all-rs checkout.
  • Only reclone the cached source on git/process failures instead of wiping it for unrelated Julia errors.
  • Retry cargo build once after cargo clean when the first build fails.

Context

Follow-up to #121. The latest build.log failure came from a MethodError in git_rev_parse that triggered an unnecessary cache wipe and a long rebuild.

Test plan

  • julia --startup-file=no --project=. test/deps/build_config.jl
  • julia --startup-file=no --project=. deps/build.jl on Windows

Made with Cursor

@terasakisatoshi
terasakisatoshi enabled auto-merge July 7, 2026 11:15
Normalize pinned commit and git rev-parse inputs to String, avoid wiping the cached tensor4all-rs checkout on non-git errors, and retry cargo builds once after cargo clean.

Co-authored-by: Cursor <cursoragent@cursor.com>
@terasakisatoshi
terasakisatoshi merged commit 92913c3 into main Jul 7, 2026
5 checks passed
@terasakisatoshi
terasakisatoshi deleted the fix/windows-build-cache-pin-check branch July 7, 2026 11:19
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