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