bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#27096: guix package -i ... fails when the internet is disconnected


From: Brendan Tildesley
Subject: bug#27096: guix package -i ... fails when the internet is disconnected
Date: Mon, 29 May 2017 18:30:18 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.8.0

Ludovic Courtès 於 2017-05-29 06:39 寫道:
> Hi Brendan,
>
> Brendan Tildesley <address@hidden> skribis:
>
>> On GuixSD, I ran the following install command 3 times. The second time,
>> it showed "nothing to be done" as expected. However after that, I
>> disconnected my internet and ran it again with different results
>> including a guile type error. Just because there was no internet
>> connection, guix tries to download a variety of packages even though it
>> theoretically shouldn't need anything, and fails to handle the case
>> where there is no internet connection and a #f is returned somewhere in
>> the code. I think guix development has taken for granted that one always
>> has an internet connection. Some hackers may wish to try out hacking on
>> Guix for a few hours without an internet connection and see what doesn't
>> work.
> I even do that on the train from time to time.  :-)
>
>> [...]
> So you run the exact same command twice in a row and the second one
> starts downloading things, right?  Did you run ‘guix gc’ in the meantime
> or something?
No, I just noticed it when my connection failed, so I reproduced it by
running it with my internet on, pulling the cable out and running it
again immediately, and this is what happened.
>> Backtrace:
>>            1 (primitive-load "/gnu/store/fza7573wpfm3alzdnnfw4g6f1ww…")
>> In guix/ui.scm:
>>    1264:8  0 (run-guix-command _ . _)
>>
>> guix/ui.scm:1264:8: In procedure run-guix-command:
>> guix/ui.scm:1264:8: In procedure struct_vtable: Wrong type argument in
>> position 1 (expecting struct): #f
> That may come from (guix scripts substitute), but not sure where.
>
> Thanks,
> Ludo’.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]