-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: set repoRoot on http cache so cache can be restored (#4956)
repoRoot was never passed in before, but in 829e5ac, changing the implementation of `restoreTar` caused the handling of an empty string for this argument to change. Before, the contents of the tar would get anchored before attempting to write to disk, but in cacheItem, this affordance does not seem to exist. We could add it back, but the implementation looks different enough that it is easier to just pass in the repoRoot. Additionally, there may be other issues with running turbo from subdirectories, since the inferred path from an empty string may be defaulting to cwd, which would be the incorrect place to restore from a remote cache.
- Loading branch information
Showing
5 changed files
with
117 additions
and
16 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
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