Fix non-determinism in rules_rs/crate_git_repository.bzl (#16590)

Running multiple builds with no changes causes some differences, we see
that
https://app.buildbuddy.io/compare/a9719629-1660-4735-a477-d66357f234fb...df85310b-eb5c-4c10-8b79-4d0449ba6cdd#file
shows the file-differences between two Bazel builds.

These differences are caused by a non-deterministic `.git` entry in the
rules_rs crates that are created with `crate_git_repository`.

As a way to make these deterministic, we can remove this entry after we
download the git source, so that the input to the compile action is
deterministic.

### CLA

I have read the CLA Document and I hereby sign the CLA
This commit is contained in:
Tyler French
2026-04-02 14:21:11 -04:00
committed by GitHub
Unverified
parent 95b0b5a204
commit 1d8a22e9dd
2 changed files with 21 additions and 0 deletions
+1
View File
@@ -71,6 +71,7 @@ single_version_override(
patch_strip = 1,
patches = [
"//patches:rules_rs_windows_gnullvm_exec.patch",
"//patches:rules_rs_delete_git_worktree_pointer.patch",
],
version = "0.0.43",
)