From bc3730ef387695688ca52dbc88da3bc9333b3a53 Mon Sep 17 00:00:00 2001 From: tobil4sk Date: Mon, 11 Apr 2022 18:47:42 +0100 Subject: [PATCH] Print which haxelib is used when in debug mode Closes #345 --- src/haxelib/client/Main.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/haxelib/client/Main.hx b/src/haxelib/client/Main.hx index 4e1cd2091..7bd49d668 100644 --- a/src/haxelib/client/Main.hx +++ b/src/haxelib/client/Main.hx @@ -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)