From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: bug#40412: cargo-build-system hides the package dependency graph Date: Fri, 3 Apr 2020 13:44:12 -0400 Message-ID: <20200403174412.GA7784@jasmine.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42744) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKQNL-0007wh-Ur for bug-guix@gnu.org; Fri, 03 Apr 2020 13:45:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKQNK-0000tt-Oo for bug-guix@gnu.org; Fri, 03 Apr 2020 13:45:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59847) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jKQNK-0000tD-JA for bug-guix@gnu.org; Fri, 03 Apr 2020 13:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jKQNK-0004fT-ED for bug-guix@gnu.org; Fri, 03 Apr 2020 13:45:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:41653) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKQMb-0007Pe-IN for bug-guix@gnu.org; Fri, 03 Apr 2020 13:44:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKQMa-0007vS-C2 for bug-guix@gnu.org; Fri, 03 Apr 2020 13:44:17 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:42717) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jKQMa-0007sj-4V for bug-guix@gnu.org; Fri, 03 Apr 2020 13:44:16 -0400 Received: from localhost (c-76-124-138-63.hsd1.pa.comcast.net [76.124.138.63]) by mail.messagingengine.com (Postfix) with ESMTPA id 776FC3280067 for ; Fri, 3 Apr 2020 13:44:14 -0400 (EDT) Content-Disposition: inline List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: 40412@debbugs.gnu.org Some Guix commands like `guix graph` and `guix show` don't work as expected for packages using the cargo-build-system. The cargo-build-system uses only the source code of a package's dependencies when building. To achieve this, the build system does not refer to dependencies with the usual 'inputs', 'native-inputs', and 'propagated-inputs', but instead with the Scheme keywords #:cargo-inputs and #:cargo-development-inputs. [0] This means that it's not possible to work with the package dependency graph like with other packages. As a result, some Guix commands don't work as expected, such as `guix graph` and `guix show`. I wonder if `guix refresh --update` works? I'm not sure if this can be improved — there is a comment in ((guix build-system cargo) expand-crate-sources) that explains why we did it this way and acknowledges the problems. [0] For example: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/crates-io.scm?id=e7a353ed468a805af6ad6b06b0dc0909393ff8fa#n89