From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QIJWI5yk1GHQVAEAgWs5BA (envelope-from ) for ; Tue, 04 Jan 2022 20:48:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EP+TIJyk1GEY9QAA9RJhRA (envelope-from ) for ; Tue, 04 Jan 2022 20:48:44 +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 D8C4E4146F for ; Tue, 4 Jan 2022 20:48:43 +0100 (CET) Received: from localhost ([::1]:40876 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4pnX-0004Db-3I for larch@yhetil.org; Tue, 04 Jan 2022 14:48:43 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36474) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4pnO-0004DE-19 for help-guix@gnu.org; Tue, 04 Jan 2022 14:48:34 -0500 Received: from [2607:f8b0:4864:20::236] (port=40455 helo=mail-oi1-x236.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4pnM-00078v-4d for help-guix@gnu.org; Tue, 04 Jan 2022 14:48:33 -0500 Received: by mail-oi1-x236.google.com with SMTP id t204so55010070oie.7 for ; Tue, 04 Jan 2022 11:48: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=iE4IZd+LsA691BxqZLstYC9S/+SfEVftBvYr8DrfYes=; b=X+5r+ui4SypKG40QoTDrJJXvdampEHN3iq/6UHfkzAvxkij9FDSInEhmXe+xlrhrLc Htrvdjuy+vYdVP9nDT35GbC7kLXf6W1i2ka2BfMm8SFoezLq2OICJkPwzz0LR2cJPOQe ablBwBkS6iclk6zjCl+MmDeMlQFSwRe8IfoR+fhZya7XIBepytZ/npGe1K54pVlLvALR +a6r0+e5ArNXhxlepOOfWaHmzB/INU5dLGcjavxy11DaquiYuqZQQ+xKQODpPEEqmgvv TlbVeoPS5cJSOF8bffPCeLymsM2NUlDdp+hgY4A8LlSRp81LVN7xMLIFNFIEpOfiDw2H veGA== 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=iE4IZd+LsA691BxqZLstYC9S/+SfEVftBvYr8DrfYes=; b=aNsJV3Emh8o8hijl7p8rwb8BJ0f5Fo2kPfdx9IP3YTAe1ohYPAC7VbcP+Gn3PRpufY h9CpbDIait/fGlcIHEGmHVemoLV0cLbVi6ZDruxg2IatlqYUTu9e5OvjYICMj2nnC/Nw anyNRaC6I8TIISD10ECS8NOZkpRP3d/g2NljK7SkBK/YE4Iw/RA7Vy93xENLpHFr0DGX Z9uYLn6luGMdTWxtztjEXkUou643Z+DpQzlmwoi0uv5XhgoyBvzxU3oU6elteSueO2HH qkX7tHt8WoNBu6ABrTmoj0PuOBEjbdgSnHC2h5LEz7nUBD4Zy+fU8McJi2i5jDPVEaMy 3MPg== X-Gm-Message-State: AOAM531kqYtbolAudwc64zPKjdgL9PsSuZUUZl60V8fWzboXEwDM4fVH yLiYKPdKIEuCNOtWVtJP1MD29VTZaLHn0rxHe/c= X-Google-Smtp-Source: ABdhPJwUxVJJhB+XWA5vYMwtTHv6N2tUnRKY89KknLkk78WBvDJsWrcyMhwW0JTsaOqYzkY0DAapk/7C965mwnDc1pY= X-Received: by 2002:aca:dbd5:: with SMTP id s204mr40945517oig.41.1641325710901; Tue, 04 Jan 2022 11:48:30 -0800 (PST) MIME-Version: 1.0 References: <87k0ff1foz.fsf@ngyro.com> In-Reply-To: <87k0ff1foz.fsf@ngyro.com> From: Mortimer Cladwell Date: Tue, 4 Jan 2022 14:48: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::236 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::236; envelope-from=mbcladwell@gmail.com; helo=mail-oi1-x236.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=1641325724; 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=5G27whDSd2IHnWqiAjwpgsfJpHyWtPbDhNTldAmN1ys=; b=fsR5T20iFl273wDURd8dCFSt9m0P8s+kMmP92ia3oFAlgKVh+vyp0nDfjecHJsv9tTlq44 moRmzPFVtqAnoZ4OkWZwxErMBgTWLbrvWfMsLRc8JCHrxd3q3DYvMOg/2JDcnf9KLEBKH8 giFUCchYGgKyz4s29Qi7zLI33HwTWN1rCdqKY+4X9vCTNlQu0LOxttqALzqSv0AaEa2flT TonRr1ENYuqeQlu9Pw798xaBWiVaXKcYp2Wt5YHzTJ429K7KTNwU2XI7Xe/Sdl0BCTBj9A YikeItRnX5QdLUXiqEulGX9XFwwGVoH2zOIzJkCAXlHpKpguktPa/LlcBbGV1Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641325724; a=rsa-sha256; cv=none; b=dVRkfa8/j3K5J6y2ww5EjaQr8Q0AaD3AQ0UZDLTLOsR/AO6UA1fQd4sPca2Vx/GmFJVId2 dRGog/Se+Pl+pULXsrtu7SDMWL6Q3PGYi/w8lg/h8KLP2LPfoCSOFVbCKbMCtPY2kjrdr6 Q4LDdxOiVTHumubkjCKseQgzKoW6NGn9GvB5m2V4BgK0OJQxSu4XiPuVF9k+G8EhkTtSNv uahscrg1086mb71N13AYvpmo/gUVhnoTwr7zrTMTZ+f9swARQIv7LUYR/AQfl7Zvy0tS2X 7zKm8uSB06kNqkXiQpgrqQX/f7nZF4JjrG+Hk5zJ5dwUqwV5sbaKEKUDm92Y3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=X+5r+ui4; 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: -0.99 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=X+5r+ui4; 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: D8C4E4146F X-Spam-Score: -0.99 X-Migadu-Scanner: scn1.migadu.com X-TUID: XHZnRyzGwNjI 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, though 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 Disarchive= 0.4.0, the > following (untested) patch should fix it: > > > Hope that helps! > > > -- Tim >