From ff4b9e75fd0b4fd0835b8322a49e48111334a5d5 Mon Sep 17 00:00:00 2001 From: Florian Meriaux Date: Tue, 12 Apr 2022 14:44:02 +0200 Subject: [PATCH] search sbt files in all directories. --- __tests__/cache.test.ts | 2 +- dist/cleanup/index.js | 2 +- dist/setup/index.js | 2 +- src/cache.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/__tests__/cache.test.ts b/__tests__/cache.test.ts index 5214c74f..2b42a521 100644 --- a/__tests__/cache.test.ts +++ b/__tests__/cache.test.ts @@ -123,7 +123,7 @@ describe('dependency cache', () => { await expect(restore('sbt')).rejects.toThrowError( `No file in ${projectRoot( workspace - )} matched to [*.sbt,project/build.properties,project/**.{scala,sbt}], make sure you have checked out the target repository` + )} matched to [**/*.sbt,**/project/build.properties,**/project/**.{scala,sbt}], make sure you have checked out the target repository` ); }); it('downloads cache', async () => { diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index 03eaedbf..f8b254f6 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -61894,7 +61894,7 @@ const supportedPackageManager = [ path_1.join(os_1.default.homedir(), '.sbt'), getCoursierCachePath() ], - pattern: ['*.sbt', 'project/build.properties', 'project/**.{scala,sbt}'] + pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}'] } ]; function getCoursierCachePath() { diff --git a/dist/setup/index.js b/dist/setup/index.js index 2e6e4c65..2dc4092f 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -18631,7 +18631,7 @@ const supportedPackageManager = [ path_1.join(os_1.default.homedir(), '.sbt'), getCoursierCachePath() ], - pattern: ['*.sbt', 'project/build.properties', 'project/**.{scala,sbt}'] + pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}'] } ]; function getCoursierCachePath() { diff --git a/src/cache.ts b/src/cache.ts index e51d2b4e..2d5fe11d 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -40,7 +40,7 @@ const supportedPackageManager: PackageManager[] = [ join(os.homedir(), '.sbt'), getCoursierCachePath() ], - pattern: ['*.sbt', 'project/build.properties', 'project/**.{scala,sbt}'] + pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}'] } ];