build: don't use deprecated $(location) pre-declared variable (#36308)
$(location) is not recommended in the bazel docs as depending on context it will either return the value of $(execpath) or $(rootpath). rules_nodejs now supports $(rootpath) and $(execpath) in templated_args of nodejs_binary. PR Close #36308
This commit is contained in:

committed by
Alex Rickabaugh

parent
b44f7b5e16
commit
63fbc71439
@ -340,7 +340,7 @@ class TestRunner {
|
||||
}
|
||||
}
|
||||
|
||||
const config = require(process.argv[2]);
|
||||
const config = require(runfiles.resolveWorkspaceRelative(process.argv[2]));
|
||||
|
||||
// set env vars passed from --define
|
||||
for (const k of Object.keys(config.envVars)) {
|
||||
|
Reference in New Issue
Block a user