Conversation
|
Thanks for this PR! It does fix the build indeed, but I'm not sure this is the right solution. We would like to avoid installing Unfortunately, it's a bit annoying here because we need the
So while we could manually write Maybe we should use a |
Hello, I am not a js developer so I know very little about node and I have very little experience in rust. All I know is from reading the rust book and solving the rustlings so pardon me if my question is stupid but is this a valid solution? In build.rs: let output = cmd
.output()
.or_else(|_| {
Command::new("npm")
.args(&["install", "-g", "nwlink"])
.output()
.and_then(|_| cmd.output())
})
.expect("You should install npm and nwlink");I think this should work because as far as I can tell, build runs before install |
No description provided.