Skip to content

Commit

Permalink
chore: don't use path env during build
Browse files Browse the repository at this point in the history
Avoids a bug where rustup adds cargo bin twice:
rust-lang/rustup#2978

For all intents and purposes we should be fine to use the current path from runtime.

Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com>
  • Loading branch information
tiagolobocastro committed Dec 13, 2022
1 parent fcb9d92 commit 4d77142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deployer/src/infra/csi-driver/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl CsiNode {

let path = format!(
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:{}",
env!("PATH")
std::env::var("PATH").unwrap()
);

cfg.add_container_spec(
Expand Down

0 comments on commit 4d77142

Please sign in to comment.