From 632a35aa4311fd7a1dd3f9b56e752111f54fca4e Mon Sep 17 00:00:00 2001 From: tobil4sk Date: Fri, 10 May 2024 02:06:47 +0100 Subject: [PATCH] Use cwd when running `haxelib path` If a local haxelib repo is being used, then moving out of the cwd will break library resolution. This was presumably done in case `haxelib` is not in `PATH`, but in that situation `HAXEPATH` is unlikely to have been set either. --- tools/hxcpp/PathManager.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hxcpp/PathManager.hx b/tools/hxcpp/PathManager.hx index 6a39ba9df..15b83c7e7 100644 --- a/tools/hxcpp/PathManager.hx +++ b/tools/hxcpp/PathManager.hx @@ -106,7 +106,7 @@ class PathManager try { - output = ProcessManager.runProcess(Sys.getEnv ("HAXEPATH"), "haxelib", [ "path", name ], true, false); + output = ProcessManager.runProcess("", "haxelib", [ "path", name ], true, false); } catch (e:Dynamic) {}