Skip to content

Commit

Permalink
Fix PATH issues on server
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbrain-za committed Jan 6, 2024
1 parent ac62bb7 commit 1c44fba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "challenge_server"
version = "4.3.1"
version = "4.3.2"
edition = "2021"

[dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ impl Submission {
let mut command = std::process::Command::new(Self::get_judge());
command
.current_dir("/tmp/code_challenge")
.env("PATH", "/tmp/code_challenge")
.arg("-n")
.arg(&self.player)
.arg("-C")
Expand All @@ -87,6 +86,7 @@ impl Submission {
if self.test {
command.arg("-t");
}
log::debug!("Command: {:?}", command);

let output = match command.output() {
Ok(o) => {
Expand All @@ -105,7 +105,7 @@ impl Submission {
message: format!("Error running command: {}", e),
},
};
let _ = self.delete_file();
// let _ = self.delete_file();
output
}

Expand Down

0 comments on commit 1c44fba

Please sign in to comment.