HaxeFoundation / haxelib

The Haxe library manager
https://lib.haxe.org/
MIT License
174 stars 77 forks source link

haxelib info doesn't work with git installed libs #360

Open MatthijsKamstra opened 7 years ago

MatthijsKamstra commented 7 years ago

If a lib is installed using git, haxelib user and haxelib info doesn't work

example:

haxelib git js-kit https://github.com/clemos/haxe-js-kit.git haxelib
haxelib info js-kit
Error: No such Project : js-kit
ibilon commented 7 years ago

Haxelib info is used to lookup on the server, it doesn't use what's installed, same for user which is about the official haxelib repository registration.

What are you trying to get out of info/user?

MatthijsKamstra commented 7 years ago

I was really not trying to get anything out of it.

A colleague of mine was creating a docker Haxe image for me and the project I currently doing. He has no knowledge of Haxe.

So he used haxelib install build.hxml and still the build failed ... because js-kit is not an official haxelib. We fixed that easily, but then he checked info and that gave a harsh error.

And I say harsh because it's not true. The project is installed and locally there is a project named 'js-kit'.

Remember my colleague has not knowledge of Haxe / Haxelib.

First he type haxelib list which worked (it looks locally) and then haxelib info js-kit and that gave an error ... and thus some weird looks.

What I would suggest is a check: use haxelib server but if error check locally.

but it's a nice-to-have, it just would make those weird faces easier

😄

tecteun commented 6 years ago

+1