mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
Fix yarn install failing if node binary unavailable
The paths we were using were relative, and were breaking if cwd is changed.
This commit is contained in:
parent
0be31b1b17
commit
ad74a01491
1 changed files with 6 additions and 2 deletions
|
@ -31,8 +31,12 @@ pub fn run_build(args: BuildArgs) {
|
|||
)
|
||||
} else {
|
||||
format!(
|
||||
"out/bin:out/extracted/node/bin:{}",
|
||||
env::var("PATH").unwrap()
|
||||
"{br}/bin:{br}/extracted/node/bin:{path}",
|
||||
br = build_root
|
||||
.canonicalize_utf8()
|
||||
.expect("resolving build root")
|
||||
.as_str(),
|
||||
path = env::var("PATH").unwrap()
|
||||
)
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue