File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,11 @@ class Runfiles {
50
50
else if ( ! ! _env [ 'RUNFILES_DIR' ] ) {
51
51
this . runfilesDir = path__default [ 'default' ] . resolve ( _env [ 'RUNFILES_DIR' ] ) ;
52
52
}
53
+ else if ( ! ! _env [ 'RUNFILES' ] ) {
54
+ this . runfilesDir = path__default [ 'default' ] . resolve ( _env [ 'RUNFILES' ] ) ;
55
+ }
53
56
else {
54
- throw new Error ( 'Every node program run under Bazel must have a $RUNFILES_DIR or $RUNFILES_MANIFEST_FILE environment variable' ) ;
57
+ throw new Error ( 'Every node program run under Bazel must have a $RUNFILES_DIR, $RUNFILES or $RUNFILES_MANIFEST_FILE environment variable' ) ;
55
58
}
56
59
// Under --noenable_runfiles (in particular on Windows)
57
60
// Bazel sets RUNFILES_MANIFEST_ONLY=1.
Original file line number Diff line number Diff line change @@ -28,9 +28,11 @@ export class Runfiles {
28
28
this . manifest = this . loadRunfilesManifest ( _env [ 'RUNFILES_MANIFEST_FILE' ] ! ) ;
29
29
} else if ( ! ! _env [ 'RUNFILES_DIR' ] ) {
30
30
this . runfilesDir = path . resolve ( _env [ 'RUNFILES_DIR' ] ! ) ;
31
+ } else if ( ! ! _env [ 'RUNFILES' ] ) {
32
+ this . runfilesDir = path . resolve ( _env [ 'RUNFILES' ] ! ) ;
31
33
} else {
32
34
throw new Error (
33
- 'Every node program run under Bazel must have a $RUNFILES_DIR or $RUNFILES_MANIFEST_FILE environment variable' ) ;
35
+ 'Every node program run under Bazel must have a $RUNFILES_DIR, $RUNFILES or $RUNFILES_MANIFEST_FILE environment variable' ) ;
34
36
}
35
37
// Under --noenable_runfiles (in particular on Windows)
36
38
// Bazel sets RUNFILES_MANIFEST_ONLY=1.
You can’t perform that action at this time.
0 commit comments