From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 25 19:28:44 2020 Received: (at 31302) by debbugs.gnu.org; 25 Oct 2020 23:28:44 +0000 Received: from localhost ([127.0.0.1]:37933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWpRL-00023U-M8 for submit@debbugs.gnu.org; Sun, 25 Oct 2020 19:28:44 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:62658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kWjZV-0007WP-K6 for 31302@debbugs.gnu.org; Sun, 25 Oct 2020 13:12:46 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4CK4KM31PXzQl9C; Sun, 25 Oct 2020 18:12:39 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter03.heinlein-hosting.de (spamfilter03.heinlein-hosting.de [80.241.56.117]) (amavisd-new, port 10030) with ESMTP id ykPBZNNcDNzt; Sun, 25 Oct 2020 18:12:35 +0100 (CET) Date: Sun, 25 Oct 2020 20:12:32 +0300 (TRT) From: Lulu To: zimoun Message-ID: <1141589329.67315.1603645952789@office.mailbox.org> In-Reply-To: <86wnzr24mc.fsf@gmail.com> References: <1377321000.57094.1602655936420@office.mailbox.org> <86wnzr24mc.fsf@gmail.com> Subject: Re: bug#31302: `guix import json` doesn't handle inputs with the form 'package:output' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-MBO-SPAM-Probability: X-Rspamd-Score: -3.39 / 15.00 / 15.00 X-Rspamd-Queue-Id: 72BFC17EB X-Rspamd-UID: 164397 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 31302 X-Mailman-Approved-At: Sun, 25 Oct 2020 19:28:42 -0400 Cc: "31302@debbugs.gnu.org" <31302@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) The version hash of Guix I tried this on was `26f6bd0403ed20c1d26eca9d4f28a0da519a56ac'. I used the example JSON file for the `hello' package provided in "(guix)Invoking guix import". Then, based on the given example of glib, I tried running `guix import json' with `glib', `glib:bin', `glib:doc', `glib:out' separately appended to the `native-inputs' array of `hello.json', in order. It produced an appropriate SXML structure in the `native-inputs` field each time: ("glib" (@ (gnu packages glib) glib-with-documentation)) for standalone `glib' and ("glib" (@ (gnu packages glib) glib-with-documentation) "bin") for the rest, which appears to fit the package definition syntax. When I tried with `glib:foo', where `foo' is an erroneous output, it yielded the following error: guix import: error: package `glib@2.62.6' lacks output `foo'. So, it seems like this bug was fixed somewhere along the line. -- Lulu