‘guix locate’ method is silently ignored when a cache exists

  • Open
  • quality assurance status badge
Details
2 participants
  • Ludovic Courtès
  • Tobias Geerinckx-Rice
Owner
unassigned
Submitted by
Tobias Geerinckx-Rice
Severity
normal
T
T
Tobias Geerinckx-Rice wrote on 1 Aug 2023 23:05
‘guix locate’ method is silently ignor ed when a cache exists
(address . bug-guix@gnu.org)
fd693f39e633bf39777d0c528a5c2275@tobias.gr
Quick niggle I noticed:

~/guix master ↑2 λ guix locate libstdc++.so.
guix locate: indexing files from /gnu/store...
guix locate: traversing local profile manifests...
indexing 735 packages
~/guix master ↑29 ↓26 λ guix locate --method=store libstdc++.so.6
~/guix master ↑29 ↓26 λ guix locate --method=store --update
libstdc++.so.6
guix locate: indexing files from /gnu/store...
indexing 24,455 packages

Either:
- the second invocation should imply --update, so Guix should store the
currently cache method(s),
- or Guix should use separate databases for each method. That's
probably too ugly.

Kind regards,

T G-R

Sent from a Web browser. Excuse or enjoy my brevity.
L
L
Ludovic Courtès wrote on 3 Sep 2023 22:03
Re: bug#65001: ‘guix locate’ method is silently ignored when a cache exists
(name . Tobias Geerinckx-Rice)(address . me@tobias.gr)(address . 65001@debbugs.gnu.org)
87pm2zc9dk.fsf@gnu.org
Hi,

Tobias Geerinckx-Rice <me@tobias.gr> skribis:

Toggle quote (6 lines)
> Either:
> - the second invocation should imply --update, so Guix should store
> the currently cache method(s),
> - or Guix should use separate databases for each method. That's
> probably too ugly.

The latter sounds ugly. The former, why not; we then only need to
distinguish between “user-specified method” and “default method” to
determine whether ‘--update’ is implied.

Ludo’.
?