[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#33647: First `guix pull' behaves unexpectedly
From: |
Diego Nicola Barbato |
Subject: |
bug#33647: First `guix pull' behaves unexpectedly |
Date: |
Wed, 19 Dec 2018 13:49:17 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Hello,
Ludovic Courtès <address@hidden> writes:
> Diego Nicola Barbato <address@hidden> skribis:
>
>> Ludovic Courtès <address@hidden> writes:
>
> [...]
>
>>> In addition, be aware that Bash maintains a cache of commands it looked
>>> up in $PATH. Thus it may be that, say, it had cached that ‘guix’ is
>>> really /run/current-system/profile/bin/guix. When you pulled, it didn’t
>>> invalidate its cache thus you kept using that old version.
>>>
>>> The solution is to run “hash guix” at the Bash prompt to force cache
>>> invalidation (info "(bash) Bourne Shell Builtins").
>>
>> I believe this is it. This also explains why ‘which guix’ returned the
>> updated guix while ‘guix --version’ claimed it was still the older
>> version, which I found rather confusing.
>> I am afraid being unaware of this has led me to inadvertently downgrade
>> GuixSD whenever I reconfigured for the first time after a fresh install.
>
> Yeah. This is not strictly speaking a Guix bug, but clearly it’s a
> common pitfall. Perhaps we should print a hint upon completion?
While I think it would be nice for Guix (or strictly speaking Bash) to
just do what a noob like me would expect it to do in this situation, a
hint would have certainly saved me some trouble. If it is unreasonably
cumbersome to make Guix tell Bash to invalidate its cache upon
completion of ‘guix pull’, I believe a hint would be good enough.
Greetings,
Diego
- bug#33647: First `guix pull' behaves unexpectedly, Diego Nicola Barbato, 2018/12/06
- bug#33647: First `guix pull' behaves unexpectedly, Ricardo Wurmus, 2018/12/06
- bug#33647: First `guix pull' behaves unexpectedly, Diego Nicola Barbato, 2018/12/06
- bug#33647: First `guix pull' behaves unexpectedly, Ludovic Courtès, 2018/12/06
- bug#33647: First `guix pull' behaves unexpectedly, Diego Nicola Barbato, 2018/12/07
- bug#33647: First `guix pull' behaves unexpectedly, Björn Höfling, 2018/12/07
- bug#33647: First `guix pull' behaves unexpectedly, Ludovic Courtès, 2018/12/07
- bug#33647: First `guix pull' behaves unexpectedly,
Diego Nicola Barbato <=
- bug#33647: First `guix pull' behaves unexpectedly, swedebugia, 2018/12/19
- bug#33647: First `guix pull' behaves unexpectedly, Tobias Geerinckx-Rice, 2018/12/19
- bug#33647: First `guix pull' behaves unexpectedly, swedebugia, 2018/12/20