Use stat() to avoid checking content hashes for repository up-to-dateness checks #21044
Open
Description
Description of the feature request:
The way Bazel verifies up-to-dateness of source files is that if some select data from stat()
is unchanged, it believes it, and if not, it does a secondary check by checksumming source files to avoid re-running actions after a simple touch
.
Repository rules don't work like this: they simply checksum every file that the repository depends on, which makes up-to-dateness much slower than they would otherwise be.
It would be nice to make repository rules do the same thing as actions.
Which category does this issue belong to?
No response
What underlying problem are you trying to solve with this feature?
Make the repository up-to-dateness check more efficient.
Which operating system are you running Bazel on?
No response
What is the output of bazel info release
?
No response
If bazel info release
returns development version
or (@non-git)
, tell us how you built Bazel.
No response
What's the output of git remote get-url origin; git rev-parse HEAD
?
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response