dist/tools: deprecate git-cache script, embrace git-cache-rs#22045
Merged
crasbe merged 2 commits intoRIOT-OS:masterfrom Feb 5, 2026
Merged
dist/tools: deprecate git-cache script, embrace git-cache-rs#22045crasbe merged 2 commits intoRIOT-OS:masterfrom
git-cache script, embrace git-cache-rs#22045crasbe merged 2 commits intoRIOT-OS:masterfrom
Conversation
e1cc2ae to
c924807
Compare
AnnsAnns
approved these changes
Feb 5, 2026
Member
AnnsAnns
left a comment
There was a problem hiding this comment.
With your test example provided I get sub-1s on the non-cached 30s pull 🥳
Member
|
Feel free to squash |
Contributor
Author
That speedup is caused by the changes of #22039, not this PR 😅 |
Member
I know but that was part of the examples you gave in the PR description :P git-cache-rs only gives me a warm feeling of memory safety. |
The old git-cache script is not under active development anymore and lacks features such as sparse checkout that is offered by git-cache-rs. This commit adds a deprecation message for git-cache as well as information how to migrate to git-cache-rs. Furthermore, it tries to use GIT_CACHE_RS by default if it is installed in the default location in the Cargo home directory.
c924807 to
d9e1a83
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
The
git-cachescript was added by @kaspar030 in 2016 to speed up the build process. It has since been replaced bygit-cache-rsby @kaspar030, which is still under active development and offers features such as sparse checkout that the original script does not.Staying compatible with
git-cachewas quite a pain in #21800 and #22039.I brought the topic up in the weekly a couple of weeks ago and AFAIR there were no voices against the deprecation of
git-cache.Testing procedure
To avoid using any caches, we have to temporarily disable
git-cache-rsandgit-cache:To use the now deprecated
git-cachescript, we have to enable the cache directory again:To use
git-cache-rs, we have to enable it again:Due to the sparse checkout supported by
git-cache-rs, we have a 50% performance increase compared togit-cache.Since I only have DSL 16.000, the speedup for any caching is significant anyways :D
Issues/PRs references
None.