diff --git a/__tests__/cache-save.test.ts b/__tests__/cache-save.test.ts index a989d2b11..922566d63 100644 --- a/__tests__/cache-save.test.ts +++ b/__tests__/cache-save.test.ts @@ -143,14 +143,6 @@ describe('run', () => { expect(getStateSpy).toHaveBeenCalledTimes(3); expect(getCommandOutputSpy).toHaveBeenCalledTimes(0); expect(debugSpy).toHaveBeenCalledTimes(0); - /* - expect(debugSpy).toHaveBeenCalledWith( - 'Consumed yarn version is 2.2.3 (working dir: "")' - ); - expect(debugSpy).toHaveBeenCalledWith( - 'yarn\'s cache folder "/some/random/path/yarn2" configured for the root directory' - ); - */ expect(infoSpy).toHaveBeenCalledWith( `Cache hit occurred on the primary key ${yarnFileHash}, not saving cache.` ); diff --git a/dist/cache-save/index.js b/dist/cache-save/index.js index 1170e3328..3a8d0cee2 100644 --- a/dist/cache-save/index.js +++ b/dist/cache-save/index.js @@ -60516,7 +60516,6 @@ const getProjectDirectoriesFromCacheDependencyPath = (cacheDependencyPath) => __ const existingDirectories = cacheDependenciesPaths .map(path_1.default.dirname) .filter(util_1.unique()) - .filter(fs_1.default.existsSync) .filter(directory => fs_1.default.lstatSync(directory).isDirectory()); if (!existingDirectories.length) core.warning(`No existing directories found containing cache-dependency-path="${cacheDependencyPath}"`); diff --git a/dist/setup/index.js b/dist/setup/index.js index 81ecf48ff..83bf5f6a3 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -71299,7 +71299,6 @@ const getProjectDirectoriesFromCacheDependencyPath = (cacheDependencyPath) => __ const existingDirectories = cacheDependenciesPaths .map(path_1.default.dirname) .filter(util_1.unique()) - .filter(fs_1.default.existsSync) .filter(directory => fs_1.default.lstatSync(directory).isDirectory()); if (!existingDirectories.length) core.warning(`No existing directories found containing cache-dependency-path="${cacheDependencyPath}"`); diff --git a/src/cache-utils.ts b/src/cache-utils.ts index 0177fba03..ac82c4c20 100644 --- a/src/cache-utils.ts +++ b/src/cache-utils.ts @@ -126,7 +126,6 @@ const getProjectDirectoriesFromCacheDependencyPath = async ( const existingDirectories: string[] = cacheDependenciesPaths .map(path.dirname) .filter(unique()) - .filter(fs.existsSync) .filter(directory => fs.lstatSync(directory).isDirectory()); if (!existingDirectories.length)