cargo-build-system hides the package dependency graph

  • Open
  • quality assurance status badge
Details
One participant
  • Leo Famulari
Owner
unassigned
Submitted by
Leo Famulari
Severity
normal
L
L
Leo Famulari wrote on 3 Apr 2020 19:44
(address . bug-guix@gnu.org)
20200403174412.GA7784@jasmine.lan
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:
?