console.hx icon indicating copy to clipboard operation
console.hx copied to clipboard

unable to upgrade to 0.2.10

Open uvtc opened this issue 5 years ago • 5 comments

Hi,

Just updated my Haxe installation to 4.0.0-rc.4, then did a haxelib upgrade and hit an error when it got to console.hx:

{snip checking others...}
Checking console.hx
Update console.hx to 0.2.10 [y/n/a] ? y
Downloading console,hx-0,2,10.zip...
Download complete: 0.24KB in 0.7s (0.3KB/s)
Failed to download https://lib.haxe.org:443/files/3.0/console,hx-0,2,10.zip. (1/3)
Http Error #403
Download complete: 0.24KB in 0.7s (0.3KB/s)
Failed to download https://lib.haxe.org:443/files/3.0/console,hx-0,2,10.zip. (2/3)
Http Error #403
Download complete: 0.24KB in 0.7s (0.3KB/s)
Failed to download https://lib.haxe.org:443/files/3.0/console,hx-0,2,10.zip. (3/3)
Http Error #403
Error: [file_open,/home/john/haxelib/console,hx-0,2,10.zip]

Called from /home/vsts/work/1/s/std/neko/_std/sys/io/File.hx line 49
Called from haxelib/client/Main.hx line 986
Called from haxelib/client/Main.hx line 978
Called from haxelib/client/Main.hx line 1360
Called from haxelib/client/Main.hx line 1309
Called from haxelib/client/Main.hx line 1308
Called from haxelib/client/Main.hx line 493

uvtc avatar Sep 06 '19 02:09 uvtc

Weird! Looks like a haxelib bug. I will investigate, thanks for reporting @uvtc

haxiomic avatar Sep 06 '19 05:09 haxiomic

Works for me on macOS. Are you on linux?

Not sure what's failing here – I think the file downloaded, so I'm assuming the unzip is failing

I've tried zipping up a different way (disabled compression) and published 0.2.12, let me know if that works for you

haxiomic avatar Sep 06 '19 12:09 haxiomic

Yes, I'm on Debian Testing.

Tried updating again, but it failed again:

$ haxelib update
Checking {...}
Checking console.hx
Update console.hx to 0.2.12 [y/n/a] ? y
Downloading console,hx-0,2,12.zip...
Download complete: 0.24KB in 0.6s (0.3KB/s)
Failed to download https://lib.haxe.org:443/files/3.0/console,hx-0,2,12.zip. (1/3)
Http Error #403
Download complete: 0.24KB in 0.7s (0.3KB/s)
Failed to download https://lib.haxe.org:443/files/3.0/console,hx-0,2,12.zip. (2/3)
Http Error #403
Download complete: 0.24KB in 0.6s (0.3KB/s)
Failed to download https://lib.haxe.org:443/files/3.0/console,hx-0,2,12.zip. (3/3)
Http Error #403
Error: [file_open,/home/john/haxelib/console,hx-0,2,12.zip]

Called from /home/vsts/work/1/s/std/neko/_std/sys/io/File.hx line 49
Called from haxelib/client/Main.hx line 986
Called from haxelib/client/Main.hx line 978
Called from haxelib/client/Main.hx line 1360
Called from haxelib/client/Main.hx line 1309
Called from haxelib/client/Main.hx line 1308
Called from haxelib/client/Main.hx line 493

uvtc avatar Sep 07 '19 23:09 uvtc

Right. Now we've got it. Turns how the haxelib server is case sensitive, but seems like the haxelib client is sometimes changing the case of modules. So it tries to get the file console,hx-0,2,12.zip but this doesn't exist. However Console,hx-0,2,12.zip does exist.

I'll open a bug report to disable case sensitivity on the haxelib server

Unfortunately I can't change the casing after the library has been submitted

Thanks for reporting @uvtc!

haxiomic avatar Sep 08 '19 10:09 haxiomic