From 7fe7ce365d651ff9312f2368b64dee9cd6b2a7eb Mon Sep 17 00:00:00 2001 From: lread Date: Fri, 26 Jul 2024 12:15:02 -0400 Subject: [PATCH] review feeback: only alter `program` if necessary --- src/babashka/process.cljc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/babashka/process.cljc b/src/babashka/process.cljc index 0ff4c4d..81cfa83 100644 --- a/src/babashka/process.cljc +++ b/src/babashka/process.cljc @@ -194,12 +194,13 @@ (fs/parent program) (if dir - (fs/which (fs/file dir program)) + ;; we need to absolutize here to overcome a bug in Windows ProcessBuilder + (some-> (fs/which (fs/file dir program)) fs/absolutize) (fs/which program)) :else (fs/which program))] - (-> resolved fs/absolutize fs/normalize str) + (str resolved) (throw (ex-info (str "Cannot resolve program: " program) {})))) (defn ^:no-doc default-program-resolver