From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kINICL3xI2WNbAEAauVa8A:P1 (envelope-from ) for ; Mon, 09 Oct 2023 14:27:41 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kINICL3xI2WNbAEAauVa8A (envelope-from ) for ; Mon, 09 Oct 2023 14:27:41 +0200 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 4CF937534D for ; Mon, 9 Oct 2023 14:27:40 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=FuKRBbbL; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696854461; h=from:from:sender:sender:reply-to: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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=eRfgTqThLvnM4Lj4eRjCTnlmsNWk7USgb894mw8NNDE=; b=m2pbKYoWm3dl1LnjrQApj0MSIWuDQb+kezS4QtINvTHLl3vz0Chm2cGrE1IOBzdhuaM6OU 0Ekxp6k2r+csUnvnbSY7VTynUhlVwgyQrITIkvcQKUTkNsJVpqu19EbOdKiTbNoI38kbgu iTxSr2zUhOOhn2PZ4tpku+PQchXbFAzPBRVSgl2xhJkEn9rC27wOkv5CnameHrHRLe9aSV ITI7x7bDMywZXnXAcnumEFGn6sXSCq+eELD4USyvWEyVz1WNvlbvo3r+ZW+AIMNtvj9LE+ oNo3ckFJ4Um0tto2HxlyCtKnZ3MNQ50ME7O/Zb1k9ibqVNteuGA0UqJ3cNfrRA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696854461; a=rsa-sha256; cv=none; b=t5vTeTvugARbrkHFXSFHwaVWh8lWCMqQLp/Qv6KRpXOMRuFhEk2Q1IBeOlZeHEBow3Jdte vyF6bjIt5lJkhINGqFTi4BOmV+F5YyUfvhK2v0p0nVZDxqVl7G+dq79OFZuLdTA/dqwtVF D4iItliJBUB93wX49T0yRTGTEDouvc9MOuec63oN3cAyLsC1Cpjlj578O9eGCTqlacj49W z8OSWqwg9S7w34/UI//9jBUXIfN1WGp8eWQesRxVWsxcJPKDAlthQXbZWM1LClWO5kRyHH 9ny2qb9hBtoaucTl9OZzMfR2WyKiOdgfbkX67LPa010xxc2jw/L94KtdvJeEYg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=FuKRBbbL; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qppLa-00086g-7y; Mon, 09 Oct 2023 08:26:56 -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 ) id 1qppLP-00084Z-18 for bug-guix@gnu.org; Mon, 09 Oct 2023 08:26:47 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qppLN-0003Tj-Nd for bug-guix@gnu.org; Mon, 09 Oct 2023 08:26:41 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qppLi-0000uv-1B for bug-guix@gnu.org; Mon, 09 Oct 2023 08:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#66358: Can't import package using archive command Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 09 Oct 2023 12:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66358 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: "Perry, Daniel J" Cc: control@debbugs.gnu.org, 66358@debbugs.gnu.org Received: via spool by 66358-submit@debbugs.gnu.org id=B66358.16968543843474 (code B ref 66358); Mon, 09 Oct 2023 12:27:02 +0000 Received: (at 66358) by debbugs.gnu.org; 9 Oct 2023 12:26:24 +0000 Received: from localhost ([127.0.0.1]:59465 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qppL5-0000tt-Ix for submit@debbugs.gnu.org; Mon, 09 Oct 2023 08:26:23 -0400 Received: from tobias.gr ([80.241.217.52]:48276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qppKz-0000tU-GB; Mon, 09 Oct 2023 08:26:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=eRfgTqThLvnM4 Lj4eRjCTnlmsNWk7USgb894mw8NNDE=; h=references:in-reply-to:subject:cc: to:from:date; d=tobias.gr; b=FuKRBbbL2rTjEoQaIOkXYKZ1msJklgBvHm7c30JtF SgAutk5wti/P6SyWdFaOM76moFWEM6EcbCue2bYGCPxm8DZrvRs+kEIMvrASsauHx6GszF n/swRceXW0y7B9T6+mhjgtZKoHYDMo4qIkvtX8BMhQtpep4lMdsCdI0Iy+E86bHNn8UtHF oXUrMFre0I2gHsgPF9zq+9CtL/df1nVanDiyWb+eHf0pZtGHh8tpuYSqYOW7L4vzeqgUQ0 /hmBUhl+GIgPe3HtH+jJw0ec6JmbKnhjuuYDH8JccbivLEQDFNHKAkIvwN6NLjGJASbBYn YCtVmoAyUWPwnoNSduTvQ== Received: by submission.tobias.gr (OpenSMTPD) with ESMTP id fa8a595c; Mon, 9 Oct 2023 12:25:51 +0000 (UTC) MIME-Version: 1.0 Date: Mon, 09 Oct 2023 14:25:51 +0200 In-Reply-To: References: Message-ID: <74541e429369739b82716cd72ee3b511@tobias.gr> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Tobias Geerinckx-Rice From: Tobias Geerinckx-Rice via Bug reports for GNU Guix Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -4.49 X-Spam-Score: -4.49 X-Migadu-Queue-Id: 4CF937534D X-TUID: t9LiE8Od9dwZ retitle 66358 ‘guix archive --{authorize,import,…}’ are really subcommands + ignore some arguments thanks Hi Daniel, The error is correct, so I sure hope it's reproducible! Later options cancel out previous ones, so your ‘--authorize’ action takes precedence over ‘--import’. You're passing it a binary .nar archive as a private key (which is an s-expression). Boom. Instead: 1. guix archive --export hello > hello.nar 2. guix archive --authorize < export-host.private-key 3. guix archive --import < hello.nar Note that you had an extra ‘hello’ in your --import command as well. Please note that it does nothing. Option parsing in Guix is surprisingly lax. I started thinking about a nice way to make ‘--action’ options mutually exclusive, but reconsidered. I think it would violate POLA if not POSIX. I think it would be less surprising if these ‘single, mutually exclusive actions’ should always be (sub)subcommands, e.g., ‘guix archive import’, ‘guix archive authorize’, … I don't know if that change is still worth making here. Kind regards, T G-R Sent from a Web browser. Excuse or enjoy my brevity.