From 43e8d0036abf879a7ecef936e53d3fcc8cce80e5 Mon Sep 17 00:00:00 2001 From: Pyra <92104930+pyranota@users.noreply.github.com> Date: Tue, 6 Jan 2026 18:55:51 +0100 Subject: [PATCH] fix(csharp): make s3 path arch specific (#7505) * fix(csharp): make s3 path arch specific Signed-off-by: pyranota * add separator Signed-off-by: pyranota --------- Signed-off-by: pyranota --- backend/windmill-worker/src/csharp_executor.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/backend/windmill-worker/src/csharp_executor.rs b/backend/windmill-worker/src/csharp_executor.rs index d5a91ab61e..c2addba8e1 100644 --- a/backend/windmill-worker/src/csharp_executor.rs +++ b/backend/windmill-worker/src/csharp_executor.rs @@ -31,8 +31,8 @@ use crate::{ get_reserved_variables, read_result, start_child_process, }, handle_child::handle_child, - CSHARP_CACHE_DIR, DISABLE_NSJAIL, DISABLE_NUSER, DOTNET_PATH, HOME_ENV, - NSJAIL_PATH, NUGET_CONFIG, PATH_ENV, TZ_ENV, + CSHARP_CACHE_DIR, DISABLE_NSJAIL, DISABLE_NUSER, DOTNET_PATH, HOME_ENV, NSJAIL_PATH, + NUGET_CONFIG, PATH_ENV, TZ_ENV, }; use crate::common::OccupancyMetrics; @@ -58,7 +58,12 @@ lazy_static::lazy_static! { } #[cfg(feature = "csharp")] -const CSHARP_OBJECT_STORE_PREFIX: &str = "csharpbin/"; +const CSHARP_OBJECT_STORE_PREFIX: &str = const_format::concatcp!( + std::env::consts::OS, + "_", + std::env::consts::ARCH, + "_csharpbin/" +); #[cfg(feature = "csharp")] pub async fn generate_nuget_lockfile(