!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

820 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.176 Servers

Load older messages


SenderMessageTime
9 Jul 2025
@nh2:matrix.orgnh2 jonhermansen: yes, copying it to your own location also ensures that given it works for hexa , we can exclude that some of us got different bytes delivered by that URL 01:36:42
@jonhermansen:matrix.orgjonhermansenThis URL seems to work fine, but it has different contents https://github.com/SeleniumHQ/selenium/releases/download/selenium-3.141.0/selenium-server-standalone-3.141.0.jar01:37:36
@jonhermansen:matrix.orgjonhermansen
~ curl -s https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar | sha256sum
acf71b77d1b66b55db6fb0bed6d8bae2bbd481311bcbedfeff472c0d15e8f3cb  -
01:38:31
@jonhermansen:matrix.orgjonhermansen
~ curl -s https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar | file -  
/dev/stdin: Zip archive data, at least v2.0 to extract, compression method=deflate
~ curl -s https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar | sha256sum
acf71b77d1b66b55db6fb0bed6d8bae2bbd481311bcbedfeff472c0d15e8f3cb  -
01:39:11
@dramforever:matrix.orgdramforever huh, i think i found it: the failing url returns an http header content-encoding: None 01:40:32
@dramforever:matrix.orgdramforever that's where None has been coming from 01:40:42
@jonhermansen:matrix.orgjonhermansenLOL01:40:49
@jonhermansen:matrix.orgjonhermansencan you see verbose curl info when running Nix?01:41:10
@dramforever:matrix.orgdramforeverdoesn't seem like it01:41:54
@jonhermansen:matrix.orgjonhermansenbut someone else ran the command on another system and got a different result? is the result also dependend on the sqlite DB state?01:42:08
@jonhermansen:matrix.orgjonhermansen* but someone else ran the command on another system and got a different result? is the result also dependent on the sqlite DB state?01:42:17
@nh2:matrix.orgnh2looks like that message should be improved to make that clear01:42:26
@dramforever:matrix.orgdramforeverunlikely, given that this thing fails at the http download stage01:42:29
@jonhermansen:matrix.orgjonhermansenI am a complete Nix noob so I'm learning as I go, if I ask a dumb question, sorry01:42:31
@dramforever:matrix.orgdramforeverplease ask more dumb questions01:43:03
@jonhermansen:matrix.orgjonhermansenOk, duh, the .jar file is coming from Google in this instance01:43:07
@dramforever:matrix.orgdramforeverso the http server is sending a bad header01:43:30
@dramforever:matrix.orgdramforeverand we don't handle that particularly gracefully01:43:37
@dramforever:matrix.orgdramforever it looks like in TransferItem::writeCallback we call makeDecompressionSink 01:44:14
@dramforever:matrix.orgdramforever passing the encoding straight from the http header to libarchive 01:44:32
@dramforever:matrix.orgdramforever and libarchive goes "i literally have no idea what None is" 01:44:41
@jonhermansen:matrix.orgjonhermansenHow big is the buffer that stores the encoding string?01:45:09
@dramforever:matrix.orgdramforever normally it should only give what we send as Accept-Encoding 01:45:21
@jonhermansen:matrix.orgjonhermansenThis is libcurl right, I guess nix includes in01:45:22
@nh2:matrix.orgnh2

Repro: curl --silent --head 'https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar' | grep -i content-encoding
I get

x-goog-stored-content-encoding: None
content-encoding: None

hexa do you get that also, given it worked for you?

01:45:27
@jonhermansen:matrix.orgjonhermansen* This is libcurl right, I guess nix includes it01:45:31
@jonhermansen:matrix.orgjonhermansenyup01:45:50
@hexa:lossy.networkhexayes01:45:51
@dramforever:matrix.orgdramforeveri'm not sure why but i think we handle decompression ourselves01:45:51
@jonhermansen:matrix.orgjonhermansenx-goog-stored-content-encoding: None01:45:53

Show newer messages


Back to Room ListRoom Version: 6