diff --git a/cli/internal/cache/cache.go b/cli/internal/cache/cache.go index 8b74272ed10dd..e5e24c1a9d133 100644 --- a/cli/internal/cache/cache.go +++ b/cli/internal/cache/cache.go @@ -129,7 +129,7 @@ func newSyncCache(opts Opts, repoRoot turbopath.AbsoluteSystemPath, client clien } if useHTTPCache { - implementation := newHTTPCache(opts, client, recorder) + implementation := newHTTPCache(opts, client, recorder, repoRoot) cacheImplementations = append(cacheImplementations, implementation) } diff --git a/cli/internal/cache/cache_http.go b/cli/internal/cache/cache_http.go index 0e8d1ce5437b2..f335a954949bc 100644 --- a/cli/internal/cache/cache_http.go +++ b/cli/internal/cache/cache_http.go @@ -267,12 +267,13 @@ func (cache *httpCache) CleanAll() { func (cache *httpCache) Shutdown() {} -func newHTTPCache(opts Opts, client client, recorder analytics.Recorder) *httpCache { +func newHTTPCache(opts Opts, client client, recorder analytics.Recorder, repoRoot turbopath.AbsoluteSystemPath) *httpCache { return &httpCache{ writable: true, client: client, requestLimiter: make(limiter, 20), recorder: recorder, + repoRoot: repoRoot, signerVerifier: &ArtifactSignatureAuthentication{ // TODO(Gaspar): this should use RemoteCacheOptions.TeamId once we start // enforcing team restrictions for repositories.