From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id qI5MOwGn1GGyYQEAgWs5BA (envelope-from ) for ; Tue, 04 Jan 2022 20:58:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0Jn9MwGn1GEhAwEAG6o9tA (envelope-from ) for ; Tue, 04 Jan 2022 20:58:57 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 82F8A3884F for ; Tue, 4 Jan 2022 20:58:57 +0100 (CET) Received: from localhost ([::1]:49134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4pxQ-0001s2-JP for larch@yhetil.org; Tue, 04 Jan 2022 14:58:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4px3-0001rd-Ew for help-guix@gnu.org; Tue, 04 Jan 2022 14:58:33 -0500 Received: from [2607:f8b0:4864:20::22a] (port=37764 helo=mail-oi1-x22a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4px1-0000nP-H7 for help-guix@gnu.org; Tue, 04 Jan 2022 14:58:33 -0500 Received: by mail-oi1-x22a.google.com with SMTP id i9so52800660oih.4 for ; Tue, 04 Jan 2022 11:58:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=h0k1qxt4iR6I+SK2ZklaNkTiEdEpQ/LbMfzuqHFkdSk=; b=ncnILFPEskMWAcJTshcqlwkxZc28hct0mOy5PSpssLIl+7s3VCOAP0ObY+wzRQhGwH t9K21mH4SuOA+i8q2JfhXleGx677q1GxfAcXGMA2VBzDihLtIfnh/xT9S2ksnAuY+hzq BKuJxecTzq7dK4BUSJGDeutAwwYQvRQbOcF8vCUxCvQUvVK0lLqRXFyShyft0otOpbUY B357i9u9oqOsyqsCZegungIpdDoXm+ebsRbakSqZ2dMFUGqjSSG9fTMD7LKBgkK3J0kr 9WXLoH14xqUJtJ1thIVArS+1M7xpjvEbyyMi3z83MnqifvZSPcO5IfBBu4KrWb9uIYaI j9+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=h0k1qxt4iR6I+SK2ZklaNkTiEdEpQ/LbMfzuqHFkdSk=; b=D8gEa6Bi0ml8fy1VeJLZOhCe24bVLygcgAkb5KzacXuZRr4VTzH6TTJ/WIlGbrG+AF VIjce0MRqx3K9N5O33XbuGQyL5wKwgCl2H9T0LeDTyBoISsquqg46V7vG6gF3SCHpSzd 55hXg2mGcp1+xQ/clW1mmunXXWtr2GuBAySuWwfK6TbBQmY/116YP5mzPqFK5mm5d4J3 U2RkfiAJGnLcKS7SPeBvBCdPUKgmdhU0wOtB3GShl9se+1jwVZ/NzXN3+eM0kPHXtGEf 5bSnrfsN6Y9wN67xLqTjMNSuH5SzNVx3YukEhdg7/F/fn05gD4Vf6db2NI+r6STHdaFq wLhw== X-Gm-Message-State: AOAM531LtZASYbZnBmqeaIMQNpWaZg/7XBoAJDAN3vA2lie3PIt/AXbm Hi29T2m7oHGeUM6w/Dh7sC+IhTW8C0+hLVlAmrU= X-Google-Smtp-Source: ABdhPJzyVQTTM8FRoMC+n0d9nqyZtdmsfaJO65W1rDuK3J6vSpNL78P+Tl9EcYYasvWS5iu3H4WCNq5IZv5CiODf/GM= X-Received: by 2002:aca:dbd5:: with SMTP id s204mr40968941oig.41.1641326310395; Tue, 04 Jan 2022 11:58:30 -0800 (PST) MIME-Version: 1.0 References: <87k0ff1foz.fsf@ngyro.com> In-Reply-To: From: Mortimer Cladwell Date: Tue, 4 Jan 2022 14:58:19 -0500 Message-ID: Subject: Re: How to use guix hash --serializer? To: Timothy Sample X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::22a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::22a; envelope-from=mbcladwell@gmail.com; helo=mail-oi1-x22a.google.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641326337; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=wp2SB7deDO7+VMe/47NiffjFstnK3KlPgLUsIXTbNzs=; b=SOIphi1BXA9Isy2+IJ1+71HjlFVZpAtiMArRSJM4eXMyZXD3VxuQqyK9vWux/TFMD/vKgz 5p2XTRAb+mwT6DJd6yl8bi70VnpNAv2xP431Hs2fuDXY/NjnWf3NmFI7v/2P3sScuYQrnX vmeVz3leIM1Hs1FFMK9r3MUDpoYl5iEGz55UQWLPUfhUX8dEbZGGQc39fGYZaoRffnTvAM SRGuuD09BGHAR358hxbjmD3QwBRru7AJxamSTTm6LKU9c7w6NEXLrZdX/r9j/1jqKl7oGc dzDAOTY2A41RwV6Ln/zL6B6Ljd4UKLSZXGOiUpSz5x759aDqJeV2uQSjyk4Qpw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641326337; a=rsa-sha256; cv=none; b=ClSe5l0SQ9IdN5s7tgApWm0xMUNEgUAhFSGZIbha4A/OzXemc4U2wiT7RsOfauQg6ZC6H2 1NoPHwR4lqumEnNrsD2psCvWgpfHx9k6Tl9wIMjNnoT2CUDuSZqM8Aq55BgLEad0KZ2Wno FGk1n5C47iMA6s9KvTkN2ljLSXwYQPtuE5gcV8BFc6IhTKIJi0SF7xPTXc5DgUvO7n8Q2U fKfGrYNUXVaLwS+ohn9/nd8GW/w3QgYSaBVweZcYdVQGBh8TpciyT1FbQR85HxTu1xrxLR e6HJiK7f4MDzq5FOcwj8WE3qdNTYrzHLwS0aATrhhrtJkmR5RgE9XujdmixTYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=ncnILFPE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.49 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=ncnILFPE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 82F8A3884F X-Spam-Score: -1.49 X-Migadu-Scanner: scn0.migadu.com X-TUID: TrWO1CRXVK0h So I am seeing the result for guix hash -S . which is wrong, but when the bug is fixed I will get the results for guix hash -S -x . Is that what you are implying? Thanks Mortimer On Tue, Jan 4, 2022 at 2:48 PM Mortimer Cladwell wrote: > Thanks Tim, Simon, but that does not work for me. > > =3D=3D=3D=3Dnar=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > mbc@HP8300:~/projects$ guix hash -S nar -x ./shinyln > 1ykbpz6pqx0bkvfp3c60qfb9r0xvpmrs0ldlxm2qw0zd8f67lmaj > mbc@HP8300:~/projects$ cd shinyln/ > mbc@HP8300:~/projects/shinyln$ guix hash -S nar -x . > 1ykbpz6pqx0bkvfp3c60qfb9r0xvpmrs0ldlxm2qw0zd8f67lmaj > > =3D=3D=3D=3Dgit=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > mbc@HP8300:~/projects/shinyln$ guix hash -S git -x . > 0lai57r0p11q041b3flriv56j6n8lizwb69yv7j396yiivkspv3x > mbc@HP8300:~/projects/shinyln$ cd .. > mbc@HP8300:~/projects$ guix hash -S git -x ./shinyln > 0lai57r0p11q041b3flriv56j6n8lizwb69yv7j396yiivkspv3x > > =3D=3D=3D=3Derror during packaging=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > building /gnu/store/2a2016wffiy0cwvayvsz64r1f88k05mg-git-checkout.drv... > \r:sha256 hash mismatch for > /gnu/store/w2sl6n4jnbhzs8qp1k4lff35h1yml2c4-git-checkout: > expected hash: 1ykbpz6pqx0bkvfp3c60qfb9r0xvpmrs0ldlxm2qw0zd8f67lmaj > actual hash: 10nfjllq28jrzxd4dfqm6xzx8f2g1m6p2vivzihxc7d3ac1imnk2 > > So seems like it doesn't matter whether I am inside or outside the > directory I get the same hash (reasonable). > Neither git nor nar provide the correct hash > > FYI from https://guix.gnu.org/manual/en/html_node/Invoking-guix-hash.html > at the bottom explaining --exclude-vcs: > > $ git clone http://example.org/foo.git > $ cd foo > $ guix hash -rx . > > Suggests (to me) that you go inside the directory to calculate hash, thou= gh as above seems not to matter. > > Thanks > > Mortimer > > > > > > > > On Tue, Jan 4, 2022 at 2:09 PM Timothy Sample wrote: > >> Hi zimoun, >> >> zimoun writes: >> >> > Indeed, >> > >> > $ guix hash -S git foo -x >> > 0czq9304mdv9f2j6a8cdi9855sl8w595p06c1m8bn9pg391lhcal >> > $ guix hash -S git foo >> > 0czq9304mdv9f2j6a8cdi9855sl8w595p06c1m8bn9pg391lhcal >> > >> > Hum, I will check if it is expected. >> >> I=E2=80=99m pretty sure it=E2=80=99s a bug. Fortunately, with Disarchiv= e 0.4.0, the >> following (untested) patch should fix it: >> >> >> Hope that helps! >> >> >> -- Tim >> >