* bug#40412: cargo-build-system hides the package dependency graph
@ 2020-04-03 17:44 Leo Famulari
0 siblings, 0 replies; only message in thread
From: Leo Famulari @ 2020-04-03 17:44 UTC (permalink / raw)
To: 40412
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-04-03 17:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-03 17:44 bug#40412: cargo-build-system hides the package dependency graph Leo Famulari
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).