-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
haxelib libpath
to return root path of a library
#407
Comments
Hmm, maybe the command documentation should be improved, but that's really not what it's for. It's primarily intended for the Haxe compiler to get all the necessary arguments for a library (classpath, defines, macros etc.) and its dependencies. |
It's frequently used the way @mastef describes though... There's code to parse the path out of |
Same in lime - there's a whole helper to try and scan the returned lines for haxelib.json files, to see if they're parse-able, then to compare if the library name in them matches the one it's looking for etc. It seems overkill. I've submitted a PR now with a As for the original intent - if the intent was to pass on args to the haxe compiler, then there should've been a |
Do you need the folder of the haxelib? Or the classpath of the haxelib? (it can be a subfolder) |
haxelib path
to only return pathhaxelib libpath
to return root path of a library
Currently it seems thathaxelib path
returns a lot of unformatted extra-information, instead of just the path. It would be great if the extra information was hidden behind a flag, or a flag could be provided that would only return the path of the library - as the command suggests.haxelib path
returns the paths of libraries' source files + compiler flags. It would be great to have a command where just theroot path
of a library would be returned.This way
haxelib libpath
can be used to programmatically work with library locations - e.g. to detect current git commit of libraries in use at build time, etc.Desired output :
The text was updated successfully, but these errors were encountered: