haxelib
haxelib copied to clipboard
Haxelib ignores dev-version as existing dependency
haxelib list hxcpp
hxcpp: [git]
haxelib git hxcpp-debugger https://github.com/HaxeFoundation/hxcpp-debugger.git
Installing hxcpp-debugger from https://github.com/HaxeFoundation/hxcpp-debugger.git
Library hxcpp-debugger current version is now git
Installing dependency hxcpp
Downloading hxcpp-3,3,49.zip...
750515/49476374 (23%)
^C
This should not occur because the any version specified in the haxelib.json and dev/git version is already exists.
Steps to reproduce:
haxelib remove hxcppremove all hxcpp versions;haxelib git hxcpp https://github.com/HaxeFoundation/hxcpp.gitinstall only dev git version;haxelib git hxcpp-debugger https://github.com/HaxeFoundation/hxcpp-debugger.gitinstall library dependent on hxcpp;- Haxelib will do
Installing dependency hxcppbut it's already exists as dev.
Strangely it doesn't happen if you replace step 2 with haxelib dev hxcpp ./hxcpp/.
I think it because wrong behaviour in the checking-existing-version-process:
- checkout if dev-version is existing
- but there no checking VCS-version, only
.dev: see codefunction getDev( dir ) return File.getContent(dir + "/.dev").trim();
Info about VCS-version (git or hg) stores in the .current file as git or hg - name of subdir.
For fix if we should add there checking "if current is git or hg ⇒ continue".