diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-28 23:13:21 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-28 23:28:04 +0200 |
commit | 79c9ed185253574327b39b21265750f07ecb39b0 (patch) | |
tree | d58b77e8896da78c2a0f0eb4cc4585bf44650bae | |
parent | 1a988dd15362844b1fb112708d2b7bdd9d8ea653 (diff) | |
download | rebel-79c9ed185253574327b39b21265750f07ecb39b0.tar rebel-79c9ed185253574327b39b21265750f07ecb39b0.zip |
Move handling of current directory of task to driver
-rw-r--r-- | crates/driver/src/driver.rs | 2 | ||||
-rw-r--r-- | crates/runner/src/task.rs | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/crates/driver/src/driver.rs b/crates/driver/src/driver.rs index 9c55597..3927291 100644 --- a/crates/driver/src/driver.rs +++ b/crates/driver/src/driver.rs @@ -179,6 +179,8 @@ impl<'ctx> Driver<'ctx> { fn task_setup(task_ref: &TaskRef<'ctx>) -> Vec<&'static str> { let mut ret = vec![indoc! {" + cd {{workdir}} + export SOURCE_DATE_EPOCH=1 export AR_FOR_BUILD=ar diff --git a/crates/runner/src/task.rs b/crates/runner/src/task.rs index fd640ad..f203c2c 100644 --- a/crates/runner/src/task.rs +++ b/crates/runner/src/task.rs @@ -308,7 +308,6 @@ fn run_task(input_hash: &InputHash, task: &Task, jobserver: &mut Jobserver) -> R .stdin(Stdio::null()) .stdout(log_stdout) .stderr(log_stderr) - .current_dir(paths::TASK_WORKDIR) .env_clear() .env("PATH", "/usr/sbin:/usr/bin:/sbin:/bin") .env("HOME", "/build") |