bug#65001: ‘guix locate’ method is silently ignored when a cache exists

2023-09-03 Thread Ludovic Courtès
Hi,

Tobias Geerinckx-Rice  skribis:

> 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’.





bug#65001: ‘guix locate’ method is silently ignored when a cache exists

2023-08-01 Thread Tobias Geerinckx-Rice via Bug reports for GNU Guix

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.