From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 AOtqDr971GEmMgAAgWs5BA (envelope-from ) for ; Tue, 04 Jan 2022 17:54:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2Gj6Cr971GGCZgAAauVa8A (envelope-from ) for ; Tue, 04 Jan 2022 17:54:23 +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 EFEA13C8D5 for ; Tue, 4 Jan 2022 17:54:22 +0100 (CET) Received: from localhost ([::1]:40000 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4n4o-0007Tr-1O for larch@yhetil.org; Tue, 04 Jan 2022 11:54:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4n4b-0007TV-58 for help-guix@gnu.org; Tue, 04 Jan 2022 11:54:09 -0500 Received: from [2607:f8b0:4864:20::d2a] (port=40949 helo=mail-io1-xd2a.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n4n4Z-0001tW-OE for help-guix@gnu.org; Tue, 04 Jan 2022 11:54:08 -0500 Received: by mail-io1-xd2a.google.com with SMTP id q5so44915674ioj.7 for ; Tue, 04 Jan 2022 08:54:07 -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=zZWCZD1N/HmR5sg75UaBlSqE845VABS7JiYmBCYvNUs=; b=khtMiz7OaokXxkCpq/q7wMt1ci/3HVhPe7kH2llF+6qA9/OdyU7bHoTxUGcwrkf71s 4qqNzOQfJ6CMF5x2LG5hty62VjKsL0yDNiLckbbcxMgbiMBnjNsDUHWSUmY7yDuYyoj7 B4fb/Ri9SuFiyKYSqgF9EHrGl3QDFd9YUC4iDqM/N6bL9NwmAi9Akk3KNzw+Fd8eLqXK 5dnykccejLj6KmKskFgnBa0YQ5HajhIDlFs9Hk4OPOYx4hUpoN4pWuVeRmEkxxVWlcMl YcfJdBcs8w1eqTu9VUk0oPaLMlgcdGoTKiQt6pFaivU3RuHk0rmGvAdqzpIwrX3AEBCr 0JHg== 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=zZWCZD1N/HmR5sg75UaBlSqE845VABS7JiYmBCYvNUs=; b=Jt+PeMrIAucHlhVZshUnUSQotslJKXhwSg2r1pr6+X5QovG/ydiFtbPT9Y87qXodWL +AYqDjNrYGW//GDTRDCzcC4I4z+juB3GZgMVNQnR1HLh6k3UMSi2LuQAEkSZ6UPDYJ1W swB4iskTl02S5M8HeDP6KAYE7TbYrJbBPEO6pzWd0HVFZG32Z6kdPxUcC3QWe1vmClyy 3MnMTpFPLFeMMTuLfO5oSh8PRBfETJfqGLIx+Ck6eQGUJUbjpLl8jfKeFbna9H/f0jXD fwUQraPUS0PuAwy3UVOPi+LW9BnfjfaGkpdrUBvYRPY1et6WY0tg6KscjYeSWvUb1KVi RUIA== X-Gm-Message-State: AOAM530nYZsAjZP6KTrZQYWiCbNsZ8lJHdmA9YNrSDuEUBmW+kBGzkg0 DRfAYE1yn2i/UD3s74myqxmIqoYeuGsa4SQi9lA= X-Google-Smtp-Source: ABdhPJxlv5WuLs4K5ot3kHqyOtMx1PiTK4TnBEvHR8nO4w+aDKIUkW5Udc26fLTw8hjybpCgmsEjAIRjA0LOoLkYhI8= X-Received: by 2002:a02:6284:: with SMTP id d126mr22161158jac.293.1641315246838; Tue, 04 Jan 2022 08:54:06 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: zimoun Date: Tue, 4 Jan 2022 17:53:55 +0100 Message-ID: Subject: Re: How to use guix hash --serializer? To: Mortimer Cladwell Content-Type: text/plain; charset="UTF-8" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::d2a (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::d2a; envelope-from=zimon.toutoune@gmail.com; helo=mail-io1-xd2a.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, 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 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=1641315263; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=zZWCZD1N/HmR5sg75UaBlSqE845VABS7JiYmBCYvNUs=; b=F6ZTDpQPGmycAzcYDsNqH7nr/Y/80pDD9iryV+0UgS5rnHZh35nA+MIar6r7No/cD8/xVb n3GxNde1pTSgNXHbNHrukfnAQ9e1tX/z/RV4vuXgJFFbUtuzNv1Z4dIwb0J9SC8a5P56Tq KZHW85Qghx35Z7TOBmjJ1X8vbr1/VLpbda8vODTePomLzL3oHxTI6r741ovSR4mBffRo/1 K43Hu6HvmDWMe/Y2IZEDLfEh1xHZ8CqvxFFhtROQ69oqGgAy285SX9p/6rCImOPaxMwBFL oYAC0Kfwzj0wEsfrvrR3NQm78Sh0cgaWtgb+lrAOGS9Kxy6YOgBsmXCBcU7IVg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641315263; a=rsa-sha256; cv=none; b=djFQG/d2VMNRuVXb2He5KVKRr5lWyCzhd+GCJS6cid0q8u/B6zP23bLL61luhpkMEVQhUp cBAwrY44g7ZOWZewXVK+rJTSTLV0kM5JUXdFbvY+R6dBWd9AHfzSFsulSkraNdjeAx+Koj GAyCGH06YlYMPUPuysxl0bLsMXJHmv3DwLY0+fvfl0EPb8sJY1+fnoUoX3FzpHuup6w+AN 8D3h9WtlXDMrgXA4IkBAXdJefkiL9/w90LzTC567RY2ATJHKdSruoT5FQZ20EIfCE+hUkc wpdqngTVKwMEdblSeaeWmz11hcoxjXTY7VZC3FtkoiMOwtn+xDf27vFXV0Ibvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=khtMiz7O; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.29 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=khtMiz7O; dmarc=pass (policy=none) header.from=gmail.com; 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: EFEA13C8D5 X-Spam-Score: -3.29 X-Migadu-Scanner: scn1.migadu.com X-TUID: PV/Rrs9dC9I4 Hi, On Tue, 4 Jan 2022 at 17:39, Mortimer Cladwell wrote: > (uri (git-reference > (url "git://github.com/mbcladwell/shinyln.git") > (commit "9f06568ffa61953ab48c93e1623d88b4e672af42"))) > (sha256 (base32 > "10nfjllq28jrzxd4dfqm6xzx8f2g1m6p2vivzihxc7d3ac1imnk2")) > $guix hash -rx . > 1ykbpz6pqx0bkvfp3c60qfb9r0xvpmrs0ldlxm2qw0zd8f67lmaj That's because you are inside the folder. Go outside $ guix hash -rx shinyln 10nfjllq28jrzxd4dfqm6xzx8f2g1m6p2vivzihxc7d3ac1imnk2 where shinyln is whatever the name of the folder where the Git repo is. > $guix hash --serializer=git -x . > 0lai57r0p11q041b3flriv56j6n8lizwb69yv7j396yiivkspv3x Here, you are using the Git serializer when Guix uses the Nar one. The correct is: guix hash -S nar -x shinyln > Appears that the -x switch has no effect. Indeed, $ guix hash -S git foo -x 0czq9304mdv9f2j6a8cdi9855sl8w595p06c1m8bn9pg391lhcal $ guix hash -S git foo 0czq9304mdv9f2j6a8cdi9855sl8w595p06c1m8bn9pg391lhcal Hum, I will check if it is expected. Cheers, simon