File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ function loadRunfilesManifest(manifestPath) {
107107 const runfilesManifest = Object . create ( null ) ;
108108 const reverseRunfilesManifest = Object . create ( null ) ;
109109 const input = fs . readFileSync ( manifestPath , { encoding : 'utf-8' } ) ;
110+ const outputBase = manifestPath . substring ( 0 , manifestPath . indexOf ( '/execroot/' ) ) ;
110111
111112 // Absolute path that refers to the local workspace path. We need to determine the absolute
112113 // path to the local workspace because it allows us to support absolute path resolving
@@ -124,7 +125,7 @@ function loadRunfilesManifest(manifestPath) {
124125 // runfile refers to a different workspace, or the current runfile resolves to a file
125126 // in the bazel-out directory (bin/genfiles directory).
126127 if ( localWorkspacePath || ! runfilesPath . startsWith ( USER_WORKSPACE_NAME ) ||
127- realPath . includes ( BIN_DIR ) || realPath . includes ( GEN_DIR ) ) {
128+ realPath . startsWith ( outputBase ) ) {
128129 continue ;
129130 }
130131
@@ -149,6 +150,7 @@ function loadRunfilesManifest(manifestPath) {
149150 genRoot = `${ execRoot } ${ GEN_DIR } /` ;
150151 }
151152
153+ log_verbose ( `using outputBase ${ outputBase } ` ) ;
152154 log_verbose ( `using binRoot ${ binRoot } ` ) ;
153155 log_verbose ( `using genRoot ${ genRoot } ` ) ;
154156 log_verbose ( `using localWorkspacePath ${ localWorkspacePath } ` ) ;
You can’t perform that action at this time.
0 commit comments