From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id x2amKv6Kll+oYgAA0tVLHw (envelope-from ) for ; Mon, 26 Oct 2020 08:38:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id oO9EJv6Kll9NUgAA1q6Kng (envelope-from ) for ; Mon, 26 Oct 2020 08:38:22 +0000 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 3F18F940366 for ; Mon, 26 Oct 2020 08:38:22 +0000 (UTC) Received: from localhost ([::1]:39988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kWy1F-0007Ng-7c for larch@yhetil.org; Mon, 26 Oct 2020 04:38:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51808) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kWpRg-0005bx-PM for bug-guix@gnu.org; Sun, 25 Oct 2020 19:29:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kWpRg-0002xx-Fq for bug-guix@gnu.org; Sun, 25 Oct 2020 19:29:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kWpRg-00025C-Cu for bug-guix@gnu.org; Sun, 25 Oct 2020 19:29:04 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#31302: `guix import json` doesn't handle inputs with the form 'package:output' Resent-From: Lulu Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 25 Oct 2020 23:29:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31302 X-GNU-PR-Package: guix X-GNU-PR-Keywords: easy To: zimoun Received: via spool by 31302-submit@debbugs.gnu.org id=B31302.16036685247910 (code B ref 31302); Sun, 25 Oct 2020 23:29:04 +0000 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 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> 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-Mailman-Approved-At: Sun, 25 Oct 2020 19:28:42 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.7 (-) X-Mailman-Approved-At: Mon, 26 Oct 2020 04:35:21 -0400 X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "31302@debbugs.gnu.org" <31302@debbugs.gnu.org> Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.01 X-TUID: h0R1GVcqnreU 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