Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/push.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ pub async fn build_profile_locally(data: &PushProfileData<'_>, derivation_name:
build_command.arg(derivation_name)
};

match std::env::var("TMPDIR") {
Ok(build_dir) => {
info!("Detected TMPDIR is set for build to {build_dir}");
build_command.env("TMPDIR", build_dir);
}
Err(_) => {}
}
match (data.keep_result, data.supports_flakes) {
(true, _) => {
let result_path = data.result_path.unwrap_or("./.deploy-gc");
Expand Down