GNU bug report logs - #65001
‘guix locate’ method is silently ignored when a cache exists

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Tobias Geerinckx-Rice <me@HIDDEN>; dated Tue, 1 Aug 2023 21:06:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 65001 <at> debbugs.gnu.org:


Received: (at 65001) by debbugs.gnu.org; 3 Sep 2023 20:03:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 03 16:03:29 2023
Received: from localhost ([127.0.0.1]:47006 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qctJh-0006uR-Hp
	for submit <at> debbugs.gnu.org; Sun, 03 Sep 2023 16:03:29 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39262)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ludo@HIDDEN>) id 1qctJf-0006uF-Qv
 for 65001 <at> debbugs.gnu.org; Sun, 03 Sep 2023 16:03:28 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <ludo@HIDDEN>)
 id 1qctJZ-00088E-R8; Sun, 03 Sep 2023 16:03:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To:
 From; bh=IHoqfDY3ZC4oqSMaW24tN4D6x142WTj7lyjoEg8+IXc=; b=Or1H6fWHqjP8kzgQ6WRC
 xZ+sU9bdTV0czumWXmdYsPFDZD/HgUJTtPkDg1A6ULtWNA03dqJOZ0TxJQDd4+p9Ltt7pJUHy3Y9d
 vk8ZDdMFG3J/9cccQ8lpOFyeemHuQDhO1cOiSYhJXx2QLG5mmHJacBL6jZLrLinZVGaqeFPuxkx7h
 4ThfmyQ1M0B6To8I+OpORIRSptE0s+joHyNbYGiYln7uEj468P00VYVobfW0RVaych49JJnbGTPvN
 rkxllygUCBmNytUcIlCBmzG4lhRA2XfcEdzGH8Ql/McrF9EKtSwEB7o7wr+Jl38cWJDEtQzzm1hfO
 cspTWKpSzHYqpg==;
From: =?utf-8?Q?Ludovic_Court=C3=A8s?= <ludo@HIDDEN>
To: Tobias Geerinckx-Rice <me@HIDDEN>
Subject: Re: bug#65001: =?utf-8?Q?=E2=80=98guix_locate=E2=80=99?= method is
 silently ignored when a cache exists
References: <fd693f39e633bf39777d0c528a5c2275@HIDDEN>
Date: Sun, 03 Sep 2023 22:03:19 +0200
In-Reply-To: <fd693f39e633bf39777d0c528a5c2275@HIDDEN> (Tobias
 Geerinckx-Rice's message of "Tue, 01 Aug 2023 23:05:12 +0200")
Message-ID: <87pm2zc9dk.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 65001
Cc: 65001 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hi,

Tobias Geerinckx-Rice <me@HIDDEN> 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 =E2=80=9Cuser-specified method=E2=80=9D and =E2=80=9Cde=
fault method=E2=80=9D to
determine whether =E2=80=98--update=E2=80=99 is implied.

Ludo=E2=80=99.




Information forwarded to bug-guix@HIDDEN:
bug#65001; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 1 Aug 2023 21:05:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Aug 01 17:05:33 2023
Received: from localhost ([127.0.0.1]:48378 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1qQwYf-0002AR-DN
	for submit <at> debbugs.gnu.org; Tue, 01 Aug 2023 17:05:33 -0400
Received: from lists.gnu.org ([2001:470:142::17]:35622)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <me@HIDDEN>) id 1qQwYd-0002A8-7X
 for submit <at> debbugs.gnu.org; Tue, 01 Aug 2023 17:05:32 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1qQwYV-0005vO-V5
 for bug-guix@HIDDEN; Tue, 01 Aug 2023 17:05:24 -0400
Received: from tobias.gr ([80.241.217.52])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <me@HIDDEN>) id 1qQwYR-00081p-Bw
 for bug-guix@HIDDEN; Tue, 01 Aug 2023 17:05:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=hq4CQfMZ2gXRr
 OgRNcvBBexLfgsug0fi3ZlogwY0n6Q=; h=subject:to:from:date;
 d=tobias.gr; 
 b=HOdhgCdo5LOyXMAfbCBXecrZqOTnNJ7EitKWvaTxjpmu46im1njsT06ML/q1RSWe2o/0
 EgQSDMYAMHXmefeb743qNQV+xHTgt05E/XMMqrDOuuB0fy6goaZ77veohhF2ayLfiUuFFf
 Zj5Y9/jStOapbPT3nxJpJwjqxZBlakqHNBF6dbFlMZBvHW4Nj0ZPrOCmRXItaaUdF44edf
 tdlGCsAgChTqW6sVcYfn03woWky9yhsbYRLg6lnvGXCEHRp8iiGLbfrdmgI/LuKjVI/DKQ
 ujVqf5MHBMSjulCPsbOOFg8KvqqGgLlRMgYzI9xQ+jsBFbGRNYCmnZZb3y1heHZw==
Received: by submission.tobias.gr (OpenSMTPD) with ESMTP id 90da1128
 for <bug-guix@HIDDEN>; Tue, 1 Aug 2023 21:05:12 +0000 (UTC)
MIME-Version: 1.0
Date: Tue, 01 Aug 2023 23:05:12 +0200
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: bug-guix@HIDDEN
Subject: =?UTF-8?Q?=E2=80=98guix_locate=E2=80=99_method_is_silently_ignor?=
 =?UTF-8?Q?ed_when_a_cache_exists?=
Message-ID: <fd693f39e633bf39777d0c528a5c2275@HIDDEN>
Content-Type: text/plain; charset=UTF-8;
 format=flowed
Content-Transfer-Encoding: 8bit
Received-SPF: pass client-ip=80.241.217.52; envelope-from=me@HIDDEN;
 helo=tobias.gr
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.6 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.4 (/)

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.




Acknowledgement sent to Tobias Geerinckx-Rice <me@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#65001; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 3 Sep 2023 20:15:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.