Skip to content

Commit

Permalink
Use cwd when running haxelib path
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tobil4sk committed May 10, 2024
1 parent b1359b4 commit 632a35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/hxcpp/PathManager.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}

Expand Down

0 comments on commit 632a35a

Please sign in to comment.