forked from rust-lang/cargo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid using mtime information for reusing cache files
Using mtime information is pretty finnicky across platforms, so instead take a different strategy where we embed the sha that a cache file was generated from into the cache file itself. If the registry's sha has changed then we regenerate the cache file, otherwise we can reuse the cache file. This should make cache file generation more robust (any command can generate a cache file to get used at any time) as well as works better across platforms (doesn't run into issues with coarse mtime systems and the like).
- Loading branch information
1 parent
783f22b
commit 1daff03
Showing
4 changed files
with
59 additions
and
59 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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