@@ -409,27 +409,27 @@ export class ProjectChangeAnalyzer {
409
409
const additionalFilesToHash : string [ ] = [ ] ;
410
410
411
411
if ( this . _rushConfiguration . packageManager === 'pnpm' ) {
412
- const absoluteFilePathsToCheck : string [ ] = [ ] ;
413
-
414
- for ( const project of this . _rushConfiguration . projects ) {
415
- const projectShrinkwrapFilePath : string =
416
- BaseProjectShrinkwrapFile . getFilePathForProject ( project ) ;
417
- absoluteFilePathsToCheck . push ( projectShrinkwrapFilePath ) ;
418
- const relativeProjectShrinkwrapFilePath : string = Path . convertToSlashes (
419
- path . relative ( rootDir , projectShrinkwrapFilePath )
420
- ) ;
421
-
422
- additionalFilesToHash . push ( relativeProjectShrinkwrapFilePath ) ;
423
- }
424
-
425
- await Async . forEachAsync ( absoluteFilePathsToCheck , async ( filePath : string ) => {
426
- if ( ! ( await FileSystem . existsAsync ( filePath ) ) ) {
427
- throw new Error (
428
- `A project dependency file (${ filePath } ) is missing. You may need to run ` +
429
- '"rush install" or "rush update".'
412
+ await Async . forEachAsync (
413
+ this . _rushConfiguration . projects ,
414
+ async ( project : RushConfigurationProject ) => {
415
+ const projectShrinkwrapFilePath : string =
416
+ BaseProjectShrinkwrapFile . getFilePathForProject ( project ) ;
417
+ if ( ! ( await FileSystem . existsAsync ( projectShrinkwrapFilePath ) ) ) {
418
+ // Missing shrinkwrap of subspace project is allowed because subspace projects can be partial installed
419
+ if ( this . _rushConfiguration . subspacesFeatureEnabled ) {
420
+ return ;
421
+ }
422
+ throw new Error (
423
+ `A project dependency file (${ projectShrinkwrapFilePath } ) is missing. You may need to run ` +
424
+ '"rush install" or "rush update".'
425
+ ) ;
426
+ }
427
+ const relativeProjectShrinkwrapFilePath : string = Path . convertToSlashes (
428
+ path . relative ( rootDir , projectShrinkwrapFilePath )
430
429
) ;
430
+ additionalFilesToHash . push ( relativeProjectShrinkwrapFilePath ) ;
431
431
}
432
- } ) ;
432
+ ) ;
433
433
}
434
434
435
435
const hashes : Map < string , string > = await getRepoStateAsync ( rootDir , additionalFilesToHash , gitPath ) ;
0 commit comments