Hi, On +2021-04-03 20:42:08 +0200, Pierre Neidhardt wrote: > I just tried the following: > > --8<---------------cut here---------------start------------->8--- > guix environment -l ... > --8<---------------cut here---------------end--------------->8--- > > was forever until I stopped it. > Then > > > --8<---------------cut here---------------start------------->8--- > guix environment --no-grafts -l ... > --8<---------------cut here---------------end--------------->8--- > > completed in a few seconds. > > After this, > > --8<---------------cut here---------------start------------->8--- > guix environment -l ... > --8<---------------cut here---------------end--------------->8--- > > again completed in just a few seconds too. >
Could bash have cached a reference somwhere that made the difference? If you are running in bash, type hash to get a listing of things it has hash-table reference to see also help bash (unless your shell context is different, in which case, for convenience, the expected output is: --8<---------------cut here---------------start------------->8--- hash: hash [-lr] [-p pathname] [-dt] [name ...] Remember or display program locations. Determine and remember the full pathname of each command NAME. If no arguments are given, information about remembered commands is displayed. Options: -d forget the remembered location of each NAME -l display in a format that may be reused as input -p pathname use PATHNAME as the full pathname of NAME -r forget all remembered locations -t print the remembered location of each NAME, preceding each location with the corresponding NAME if multiple NAMEs are given Arguments: NAME Each NAME is searched for in $PATH and added to the list of remembered commands. Exit Status: Returns success unless NAME is not found or an invalid option is given. --8<---------------cut here---------------end--------------->8--- Usually this bites me by keeping on doing something old in spite of PATH changes, but if "something old" got established by your > --8<---------------cut here---------------start------------->8--- > guix environment --no-grafts -l ... > --8<---------------cut here---------------end--------------->8--- maybe it could have gotten hash-cached and remembered to make --8<---------------cut here---------------start------------->8--- > guix environment -l ... > --8<---------------cut here---------------end--------------->8--- > "work" ?? Anyway, apparently some state change is "remembered" in your sequence above, so I was reminded :) > -- > Pierre Neidhardt > https://ambrevar.xyz/ -- Regards, Bengt Richter