Open gigara opened 1 year ago
Currently we don't calculate the ID until we try to fetch the cache entry from the registered provider. I'm very open to moving this calculation earlier into the process and making it available during, say, the createOperations hook, though it does involve a bit of plumbing work.
Some progress in https://github.com/microsoft/rushstack/pull/4476
We now calculate all the hashes in beforeExecuteOperations
, so the plugin could be modified to pass all the cache ids to some other API.
Is there any method to retrieve the cache ID of a project whose local cache has been enabled? I want to retrieve the cacheIDs before the build and copy the cache files from storage.