Skip to content

Commit

Permalink
fix: pass through cacheRoot when downloading SHASUMS256.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Feb 10, 2020
1 parent ed4275b commit 7b524f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export async function downloadArtifact(

// Do not check if the file exists in the cache when force === true
if (!artifactDetails.force) {
d(`Checking the cache for ${fileName} (${url})`);
d(`Checking the cache (${artifactDetails.cacheRoot}) for ${fileName} (${url})`);
const cachedPath = await cache.getPathForFileInCache(url, fileName);

if (cachedPath === null) {
Expand Down Expand Up @@ -121,6 +121,7 @@ export async function downloadArtifact(
artifactName: 'SHASUMS256.txt',
force: artifactDetails.force,
downloadOptions: artifactDetails.downloadOptions,
cacheRoot: artifactDetails.cacheRoot,
downloader: artifactDetails.downloader,
mirrorOptions: artifactDetails.mirrorOptions,
});
Expand Down

0 comments on commit 7b524f5

Please sign in to comment.