Hello,

I think I have hit a bug in the caching `guix shell' uses.  Using the
following `manifest.scm':

--8<---------------cut here---------------start------------->8---
(specifications->manifest
 (list "icecat" "python" "ruby" "gcc-toolchain" "bash" "coreutils"))
--8<---------------cut here---------------end--------------->8---

The shell creation is fairly fast:

--8<---------------cut here---------------start------------->8---
$ time guix shell -m manifest.scm -- true

real    0m0.035s
user    0m0.046s
sys     0m0.013s
--8<---------------cut here---------------end--------------->8---

However when a -L argument is introduced, the shell creation becomes
much slower:

--8<---------------cut here---------------start------------->8---
$ mkdir xx
$ time guix shell -L xx -m manifest.scm -- true

real    0m2.288s
user    0m4.335s
sys     0m0.138s
--8<---------------cut here---------------end--------------->8---

This behavior complicates running a shell with additional local packages
which are not available in the upstream Guix.

Tomas

-- 
There are only two hard things in Computer Science:
cache invalidation, naming things and off-by-one errors.



Reply via email to