From df8236a03f614ca67f8934854904e2f5c59a9cb0 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 11 Apr 2023 15:16:55 +0200 Subject: [PATCH] fix(backend): nested deno relative imports --- backend/windmill-worker/src/worker.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/windmill-worker/src/worker.rs b/backend/windmill-worker/src/worker.rs index 4b8d2e01e1..1127bfaafc 100644 --- a/backend/windmill-worker/src/worker.rs +++ b/backend/windmill-worker/src/worker.rs @@ -1007,7 +1007,7 @@ async fn insert_initial_ping( fn extract_error_value(log_lines: &str, i: i32) -> serde_json::Value { - return json!({"message": format!("ExitCode: {i}, last log lines: {}", log_lines.to_string().trim().to_string()), "name": "ExecutionErr"}); + return json!({"message": format!("ExitCode: {i}, last log lines:\n{}", log_lines.to_string().trim().to_string()), "name": "ExecutionErr"}); } #[tracing::instrument(level = "trace", skip_all)] async fn handle_queued_job( @@ -1765,6 +1765,7 @@ async fn handle_deno_job( let import_map = format!( r#"{{ "imports": {{ + "{base_internal_url}": "{base_internal_url}/api/w/{w_id}/scripts/raw/p/", "/": "{base_internal_url}/api/w/{w_id}/scripts/raw/p/", "./wrapper.ts": "./wrapper.ts", "./main.ts": "./main.ts"{relative_mounts}