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) {
107
107
const runfilesManifest = Object . create ( null ) ;
108
108
const reverseRunfilesManifest = Object . create ( null ) ;
109
109
const input = fs . readFileSync ( manifestPath , { encoding : 'utf-8' } ) ;
110
+ const outputBase = manifestPath . substring ( 0 , manifestPath . indexOf ( '/execroot/' ) ) ;
110
111
111
112
// Absolute path that refers to the local workspace path. We need to determine the absolute
112
113
// path to the local workspace because it allows us to support absolute path resolving
@@ -124,7 +125,7 @@ function loadRunfilesManifest(manifestPath) {
124
125
// runfile refers to a different workspace, or the current runfile resolves to a file
125
126
// in the bazel-out directory (bin/genfiles directory).
126
127
if ( localWorkspacePath || ! runfilesPath . startsWith ( USER_WORKSPACE_NAME ) ||
127
- realPath . includes ( BIN_DIR ) || realPath . includes ( GEN_DIR ) ) {
128
+ realPath . startsWith ( outputBase ) ) {
128
129
continue ;
129
130
}
130
131
@@ -149,6 +150,7 @@ function loadRunfilesManifest(manifestPath) {
149
150
genRoot = `${ execRoot } ${ GEN_DIR } /` ;
150
151
}
151
152
153
+ log_verbose ( `using outputBase ${ outputBase } ` ) ;
152
154
log_verbose ( `using binRoot ${ binRoot } ` ) ;
153
155
log_verbose ( `using genRoot ${ genRoot } ` ) ;
154
156
log_verbose ( `using localWorkspacePath ${ localWorkspacePath } ` ) ;
You can’t perform that action at this time.
0 commit comments