Skip to content

Commit

Permalink
Print which haxelib is used when in debug mode
Browse files Browse the repository at this point in the history
Closes #345
  • Loading branch information
tobil4sk authored and Simn committed Apr 12, 2022
1 parent 5dfa250 commit bc3730e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/haxelib/client/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,10 @@ class Main {
if (repository != null && !isHaxelibRun && !priorityFlags.contains(System) && repository.isInstalled(HAXELIB_LIBNAME) ){
try {
final scope = Scope.getScopeForRepository(repository);
if (priorityFlags.contains(Debug)) {
final path = scope.getPath(HAXELIB_LIBNAME);
Cli.print('[debug] Using $HAXELIB_LIBNAME from "$path"');
}
scope.runScript(HAXELIB_LIBNAME, {
args: args,
useGlobalRepo: priorityFlags.contains(Global)
Expand Down

0 comments on commit bc3730e

Please sign in to comment.