Ricardo Wurmus <rek...@elephly.net> skribis: > Chris Marusich <cmmarus...@gmail.com> writes: > >> What happens if I invoke this command while GC is trying to delete the >> specified path? > > It will do weird things, I guess. It’s best to do this inside of “guix > environment” as I demonstrated because while you’re in the environment > the temporary profile is protected from GC.
But if you do “guix archive --export-docker-image=foo emacs”, then Emacs is protected from GC for the dynamic extend of ‘with-store’ in ‘guix-archive’. Also, in practice, the ‘list-runtime-roots’ helper will notice the file name in the arguments to ‘guix archive’ and will make it a GC root. So that does not introduce any difference compared to the existing behavior, I think. Ludo’.