Skip to content

Commit 06d5a10

Browse files
weriomatneunenak
authored andcommitted
chore: respect TMPDIR for local builds
This fixes serokell#283.
1 parent 599f68a commit 06d5a10

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/push.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ pub async fn build_profile_locally(data: &PushProfileData<'_>, derivation_name:
7676
build_command.arg(derivation_name)
7777
};
7878

79+
match std::env::var("TMPDIR") {
80+
Ok(build_dir) => {
81+
info!("Detected TMPDIR is set for build to {build_dir}");
82+
build_command.env("TMPDIR", build_dir);
83+
}
84+
Err(_) => {}
85+
}
7986
match (data.keep_result, data.supports_flakes) {
8087
(true, _) => {
8188
let result_path = data.result_path.unwrap_or("./.deploy-gc");

0 commit comments

Comments
 (0)