Subject: bug#40891: closed (Re: bug#40891: import crate: Traceback when package not found)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 27 Apr 2020 21:31:02 +0000

Your bug report

#40891: import crate: Traceback when package not found

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
40891: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=40891
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#40891: import crate: Traceback when package not found
From: Ludovic Courtès <[email-masked]>
To: Hartmut Goebel <[email-masked]>
Cc: [email-masked]
Date: Mon, 27 Apr 2020 23:30:18 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Hartmut Goebel <[email-masked]> skribis:

> If "import crate" does not find the package, a traceback is shown (see
> below)

Fixed in 5fbc753ab524809cd81e3e5c54b3d0acbe33792d.

Thanks,
Ludo’.

Subject: import crate: Traceback when package not found
From: Hartmut Goebel <[email-masked]>
To: bug-guix <[email-masked]>
Date: Mon, 27 Apr 2020 08:46:54 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

If "import crate" does not find the package, a traceback is shown (see
below)

I would expect an error message stating that the package was nor found
(or whatever crates.io error message is)

$ guix import crate non-exeisti[hartmut@lenashee [1] guix
(HG-sequoia-as-rust-pkgs)]$ guix import crate non-exeisting-package
Backtrace:
           4 (primitive-load "/usr/local/bin/guix")
In guix/ui.scm:
  1936:12  3 (run-guix-command _ . _)
In guix/scripts/import.scm:
   116:11  2 (guix-import . _)
In guix/scripts/import/crate.scm:
   104:23  1 (guix-import-crate . _)
In guix/import/crate.scm:
    205:8  0 (crate->guix-package "non-exeisting-package" _)

guix/import/crate.scm:205:8: In procedure crate->guix-package:
In procedure struct-vtable: Wrong type argument in position 1 (expecting
struct): #f

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | [email-masked]               |
| www.crazy-compilers.com | compilers which you thought are impossible |