haxiomic / console.hx

A haxe logging utility for easy rich output in both native and browser consoles
The Unlicense
48 stars 7 forks source link

unable to upgrade to 0.2.10 #7

Open uvtc opened 5 years ago

uvtc commented 5 years ago

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
haxiomic commented 5 years ago

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

haxiomic commented 5 years ago

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

uvtc commented 5 years ago

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 commented 5 years ago

See also https://community.haxe.org/t/http-error-403-for-release-files/2009/9.

haxiomic commented 5 years ago

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!