search sbt files in all directories.

This commit is contained in:
Florian Meriaux 2022-04-12 14:44:02 +02:00
parent 68d967ecf9
commit ff4b9e75fd
No known key found for this signature in database
GPG key ID: A3F999CB41DB6BE2
4 changed files with 4 additions and 4 deletions

View file

@ -123,7 +123,7 @@ describe('dependency cache', () => {
await expect(restore('sbt')).rejects.toThrowError( await expect(restore('sbt')).rejects.toThrowError(
`No file in ${projectRoot( `No file in ${projectRoot(
workspace 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 () => { it('downloads cache', async () => {

View file

@ -61894,7 +61894,7 @@ const supportedPackageManager = [
path_1.join(os_1.default.homedir(), '.sbt'), path_1.join(os_1.default.homedir(), '.sbt'),
getCoursierCachePath() getCoursierCachePath()
], ],
pattern: ['*.sbt', 'project/build.properties', 'project/**.{scala,sbt}'] pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
} }
]; ];
function getCoursierCachePath() { function getCoursierCachePath() {

2
dist/setup/index.js vendored
View file

@ -18631,7 +18631,7 @@ const supportedPackageManager = [
path_1.join(os_1.default.homedir(), '.sbt'), path_1.join(os_1.default.homedir(), '.sbt'),
getCoursierCachePath() getCoursierCachePath()
], ],
pattern: ['*.sbt', 'project/build.properties', 'project/**.{scala,sbt}'] pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
} }
]; ];
function getCoursierCachePath() { function getCoursierCachePath() {

View file

@ -40,7 +40,7 @@ const supportedPackageManager: PackageManager[] = [
join(os.homedir(), '.sbt'), join(os.homedir(), '.sbt'),
getCoursierCachePath() getCoursierCachePath()
], ],
pattern: ['*.sbt', 'project/build.properties', 'project/**.{scala,sbt}'] pattern: ['**/*.sbt', '**/project/build.properties', '**/project/**.{scala,sbt}']
} }
]; ];