HaxeFoundation / haxelib

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

std@sys_remove_dir when trying to install git library with specific branch #622

Open T1mL3arn opened 6 months ago

T1mL3arn commented 6 months ago

This

haxelib git flixel-text-input https://github.com/Starmapo/flixel-text-input.git master

ends with

Error: std@sys_remove_dir

and empty git directory.

Not using branch name

haxelib git flixel-text-input https://github.com/Starmapo/flixel-text-input.git

works though.

tobil4sk commented 6 months ago

If you run with the --debug flag it should hopefully give more information. It looks like the repository doesn't have a master branch, so maybe it failed to checkout, and so it tried to get rid of the git folder to revert the installation but failed for some reason.

T1mL3arn commented 6 months ago

repository doesn't have a master

Indeed I totally missed that :cry: Without --debug the error is cut, but with this flag there is error: pathspec 'master' did not match any file(s) known to git which is more clear.

tobil4sk commented 1 month ago

Reopening because the current error hides the real issue.