guix import crate misses dependencies

  • Open
  • quality assurance status badge
Details
2 participants
  • Carlo Zancanaro
  • Nathan Dehnel
Owner
unassigned
Submitted by
Nathan Dehnel
Severity
normal
N
N
Nathan Dehnel wrote on 26 Feb 01:12 +0100
(name . bug-guix)(address . bug-guix@gnu.org)
CAEEhgEtcOZ1Fi8uG0EENfWTvjt2oPy3KRNuMzO0Q-3c9s6Znfw@mail.gmail.com
Run for example: guix import crate -r --recursive-dev-dependencies -
-allow-yanked egui_dock@0.11
this will import a bunch of packages that require rust-bytemuck-1 as a
dependency, but it will not be included, and must be imported
separately.

guix 313458c
C
C
Carlo Zancanaro wrote on 26 Feb 01:46 +0100
(name . Nathan Dehnel)(address . ncdehnel@gmail.com)(address . 69397@debbugs.gnu.org)
87wmqsnjcm.fsf@zancanaro.id.au
Hi Nathan,

I just tried running your example:

On Sun, Feb 25 2024, Nathan Dehnel wrote:
Toggle quote (2 lines)
> guix import crate -r --recursive-dev-dependencies --allow-yanked egui_dock@0.11

I saw that rust-bytemuck-1 was included as an input in lots of packages,
as you said. However, I also noticed that bytemuck is present in
Guix. "guix edit rust-bytemuck" opened gnu/packages/crates-io.scm which
defines the rust-bytemuck-1 variable to a package for rust-bytemuck.

Rather than importing bytemuck separately, it should be enough to add
(use-modules (gnu packages crates-io)) at the top of your scheme file to
bring the Guix definition in.

Carlo
N
N
Nathan Dehnel wrote on 26 Feb 03:21 +0100
(name . Carlo Zancanaro)(address . carlo@zancanaro.id.au)(address . 69397@debbugs.gnu.org)
CAEEhgEuWPnrqG+jkakqys8_jgroucnV71qKQmmcY4fQVeVT06g@mail.gmail.com
Oh, my bad. Yeah, I just had my modules wrong. Thanks.

On Sun, Feb 25, 2024 at 6:46?PM Carlo Zancanaro <carlo@zancanaro.id.au> wrote:
Toggle quote (18 lines)
>
> Hi Nathan,
>
> I just tried running your example:
>
> On Sun, Feb 25 2024, Nathan Dehnel wrote:
> > guix import crate -r --recursive-dev-dependencies --allow-yanked egui_dock@0.11
>
> I saw that rust-bytemuck-1 was included as an input in lots of packages,
> as you said. However, I also noticed that bytemuck is present in
> Guix. "guix edit rust-bytemuck" opened gnu/packages/crates-io.scm which
> defines the rust-bytemuck-1 variable to a package for rust-bytemuck.
>
> Rather than importing bytemuck separately, it should be enough to add
> (use-modules (gnu packages crates-io)) at the top of your scheme file to
> bring the Guix definition in.
>
> Carlo
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 69397@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 69397
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch