From 6bd2dc38325388a55dd288b94e26ac6018622aaa Mon Sep 17 00:00:00 2001 From: pyranota <92104930+pyranota@users.noreply.github.com> Date: Mon, 23 Dec 2024 15:25:01 +0000 Subject: [PATCH 1/2] fix(windows&python): Access is denied. (os error 5) (#4969) --- backend/windmill-worker/src/python_executor.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/backend/windmill-worker/src/python_executor.rs b/backend/windmill-worker/src/python_executor.rs index 7f588d143f..083ff09a63 100644 --- a/backend/windmill-worker/src/python_executor.rs +++ b/backend/windmill-worker/src/python_executor.rs @@ -336,6 +336,18 @@ pub async fn uv_pip_compile( .args(&args) .stdout(Stdio::piped()) .stderr(Stdio::piped()); + + #[cfg(windows)] + { + child_cmd + .env("SystemRoot", SYSTEM_ROOT.as_str()) + .env("USERPROFILE", crate::USERPROFILE_ENV.as_str()) + .env( + "TMP", + std::env::var("TMP").unwrap_or_else(|_| String::from("/tmp")), + ); + } + let child_process = start_child_process(child_cmd, uv_cmd).await?; append_logs(&job_id, &w_id, logs, db).await; handle_child( From 4f38cfd17abbd1922220a9ad51d7a90dfa64de1e Mon Sep 17 00:00:00 2001 From: Alexander Petric Date: Mon, 23 Dec 2024 18:33:20 +0100 Subject: [PATCH 2/2] fix docker image build (#4968) * main docker file * fix docker image build test tag * don't remove tag * don't update docker file --- .github/workflows/docker-image.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 1df6422d78..00f8d5cd76 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -3,8 +3,7 @@ env: IMAGE_NAME: ${{ github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch' && github.repository || 'windmill-labs/windmill-test' }} DEV_SHA: - ${{ github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch' && 'dev' || github.event.inputs.tag }} - + ${{ github.event_name != 'pull_request' && github.event_name != 'workflow_dispatch' && 'dev' || github.event.inputs.tag || github.sha }} name: Build windmill:main on: push: