all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
Cc: "Antoine R . Dumont" <antoine.romain.dumont@gmail.com>,
	62264@debbugs.gnu.org
Subject: [bug#62264] [PATCH] Add 'guix locate' command
Date: Fri, 16 Jun 2023 16:25:45 +0200	[thread overview]
Message-ID: <87a5wzscuu.fsf_-_@gnu.org> (raw)
In-Reply-To: <87jzwd6573.fsf@pelzflorian.de> (pelzflorian@pelzflorian.de's message of "Thu, 08 Jun 2023 22:59:28 +0200")

Hi,

I fixed the typos/issues you reported.

"pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> skribis:

> I went on to test some things.  They are not very important, but still
> there are bugs:
>
> After deleting ~/.cache/guix/locate and cd’ing out of my home directory,
> then inside “guix shell -CW coreutils”, “guix locate ls” does not find
> ls.

Works for me:

--8<---------------cut here---------------start------------->8---
$ guix shell -CW -D guix
The following derivation will be built:
  /gnu/store/570gc0xgf6sijhjdgh406ykx7ysfckfp-profile.drv

building CA certificate bundle...
listing Emacs sub-directories...
building fonts directory...
generating GLib schema cache...
building directory of Info manuals...
building XDG desktop file cache...
building XDG MIME database...
building profile with 57 packages...
[env]$ ./pre-inst-env guix locate ls
coreutils-minimal@8.32 /gnu/store/vqdsrvs9jbn0ix2a58s99jwkh74124y5-coreutils-minimal-8.32/bin/ls
coreutils@8.32       /gnu/store/9a0cjh929maqvkxn3inv6jqbxn72fkx0-coreutils-8.32/bin/ls
coreutils@9.1        /gnu/store/skcwbg8v0w643w71j9zx25cq0a6dwirs-coreutils-9.1/bin/ls
--8<---------------cut here---------------end--------------->8---

Note that ‘-W’ has the effect of sharing ~/.cache with the container.
That means that the database is already there.

> When I use “guix locate icecat”, it legitimately also locates a file
> lib/icecat/icecat in addition to the desired bin/icecat.  I try to
> filter by “guix locate bin/icecat” or “guix locate -g bin/icecat”, but
> it seems locate does not support file names with slashes.

Right: ‘guix locate’ only checks the “basename”; it does not let you
search on the absolute file name.  We could add an option to do that
later (say ‘-f’) but I thought it’s less frequently useful.

Thanks for testing and reporting back!

I’m sending the final version taking into account your comments and
those by Jelle.  I’ll push it in the coming days if there are no
objections.

Thanks!

Ludo’.




  parent reply	other threads:[~2023-06-16 14:26 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-18 16:06 [bug#62264] [PATCH core-updates 0/6] Add `guix index` subcommand Antoine R. Dumont (@ardumont)
2023-03-18 16:57 ` [bug#62264] [PATCH core-updates 1-6/6] " Antoine R. Dumont
2023-04-02 21:57 ` [bug#62264] [PATCH core-updates 0/6] " Ludovic Courtès
2023-05-21 21:45   ` Ludovic Courtès
2023-05-22 16:53     ` Simon Tournier
2023-05-24 14:40       ` Ludovic Courtès
2023-05-25 16:20         ` Simon Tournier
2023-05-26 16:44           ` Ludovic Courtès
2023-06-04 22:25     ` Ludovic Courtès
2023-06-07 22:09       ` [bug#62264] [PATCH v2 0/3] Add 'guix locate' Ludovic Courtès
2023-06-09  3:57         ` Ryan Prior
2023-06-15 22:02           ` bug#62264: [PATCH] Add 'guix locate' command Ludovic Courtès
2023-06-07 22:09       ` [bug#62264] [PATCH v2 1/3] store: Tolerate non-existent GC root directories Ludovic Courtès
2023-06-07 22:09       ` [bug#62264] [PATCH v2 2/3] Add 'guix locate' Ludovic Courtès
2023-06-08 17:27         ` Jelle Licht
2023-06-16 14:20           ` [bug#62264] [PATCH] Add 'guix locate' command Ludovic Courtès
2023-06-08 20:59         ` [bug#62264] [PATCH v2 2/3] Add 'guix locate' pelzflorian (Florian Pelz)
2023-06-09 10:07           ` pelzflorian (Florian Pelz)
2023-06-16 14:25           ` Ludovic Courtès [this message]
2023-06-16 14:26             ` [bug#62264] [PATCH v3 1/3] store: Tolerate non-existent GC root directories Ludovic Courtès
2023-06-16 14:26             ` [bug#62264] [PATCH v3 2/3] Add 'guix locate' Ludovic Courtès
2023-06-16 14:27             ` [bug#62264] [PATCH v3 3/3] DRAFT news: Add entry for " Ludovic Courtès
2023-06-17 15:35               ` pelzflorian (Florian Pelz)
2023-06-17 15:56             ` [bug#62264] [PATCH] Add 'guix locate' command pelzflorian (Florian Pelz)
2023-06-18 21:51               ` Ludovic Courtès
2023-06-07 22:09       ` [bug#62264] [PATCH v2 3/3] DRAFT news: Add entry for 'guix locate' Ludovic Courtès
2023-06-08 21:19         ` pelzflorian (Florian Pelz)
2023-06-16 14:21           ` [bug#62264] [PATCH] Add 'guix locate' command Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87a5wzscuu.fsf_-_@gnu.org \
    --to=ludo@gnu.org \
    --cc=62264@debbugs.gnu.org \
    --cc=antoine.romain.dumont@gmail.com \
    --cc=pelzflorian@pelzflorian.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.