Subject: bug#28987: closed (Re: bug#28987: Another fail report for `guix import crate`.)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 08 Jan 2018 10:48:02 +0000

Your bug report

#28987: guix import crate fails on 648c896ad3b198a1742c1ee8f66a1922aa98c1d8

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].

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

Subject: Re: bug#28987: Another fail report for `guix import crate`.
From: [email-masked] (Ludovic Courtès)
To: Fis Trivial <[email-masked]>
Cc: "[email-masked]" <[email-masked]>
Date: Mon, 08 Jan 2018 11:47:35 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Fis Trivial <[email-masked]> skribis:

> Version :5ae8c77adec6b64a53ed10c3505263380205321d
>
> $ guix import crate racer
>
> Backtrace:
>            5 (primitive-load "/gnu/store/nxdxbad50ydp1nhmgzvlwbk0jkk…")
> In guix/ui.scm:
>   1474:12  4 (run-guix-command _ . _)
> In guix/scripts/import.scm:
>    114:11  3 (guix-import . _)
> In guix/scripts/import/crate.scm:
>     86:19  2 (guix-import-crate . _)
> In guix/import/crate.scm:
>     49:30  1 (crate-fetch _ #<procedure make-crate-sexp (#:key name …>)
> In unknown file:
>            0 (string-split #f #\/)
>
> ERROR: In procedure string-split:
> ERROR: In procedure string-split: Wrong type argument in position 1 (expecting string): #f

Fixed in 1e63ecee0b5e1d7e4894af5a51cceeba0092693c:

--8<---------------cut here---------------start------------->8---
$ ./pre-inst-env guix import crate racer
following redirection to `https://d19xqa3lc3clo8.cloudfront.net/crates/racer/racer-2.0.12.crate'...
(package
  (name "rust-racer")
  (version "2.0.12")
  (source
    (origin
      (method url-fetch)
      (uri (crate-uri "racer" version))
      (file-name
        (string-append name "-" version ".tar.gz"))
      (sha256
        (base32
          "1d0n7fzgf03ank7g93z0hj08c59kq1km91wn1sk4072q512iqkq3"))))
  (build-system cargo-build-system)
  (native-inputs
    `(("rust-lazy-static" ,rust-lazy-static "src")
      ("rust-rand" ,rust-rand "src")))
  (inputs
    `(("rust-clap" ,rust-clap "src")
      ("rust-clippy" ,rust-clippy "src")
      ("rust-env-logger" ,rust-env-logger "src")
      ("rust-lazy-static" ,rust-lazy-static "src")
      ("rust-log" ,rust-log "src")
      ("rust-syntex-errors" ,rust-syntex-errors "src")
      ("rust-syntex-syntax" ,rust-syntex-syntax "src")
      ("rust-toml" ,rust-toml "src")))
  (home-page "https://github.com/racer-rust/racer")
  (synopsis "Code completion for Rust")
  (description "Code completion for Rust")
  (license #f))
--8<---------------cut here---------------end--------------->8---

Thanks,
Ludo’.

Subject: guix import crate fails on 648c896ad3b198a1742c1ee8f66a1922aa98c1d8
From: ng0 <[email-masked]>
To: [email-masked]
Date: Wed, 25 Oct 2017 04:15:29 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

My Guix checkout on commit 648c896ad3b198a1742c1ee8f66a1922aa98c1d8
gives me for 'guix import crate x25519-dalek':

Backtrace:
           5 (primitive-load "/gnu/store/17w867lpc1grxs4aykzj5039fms…")
In guix/ui.scm:
  1384:12  4 (run-guix-command _ . _)
In guix/scripts/import.scm:
   114:11  3 (guix-import . _)
In guix/scripts/import/crate.scm:
    86:19  2 (guix-import-crate . _)
In guix/import/crate.scm:
    49:30  1 (crate-fetch _ #<procedure make-crate-sexp (#:key name …>)
In unknown file:
           0 (string-split #f #\/)

ERROR: In procedure string-split:
ERROR: In procedure string-split: Wrong type argument in position 1 (expecting string): #f
-- 
ng0
GnuPG: A88C8ADD129828D7EAC02E52E22F9BBFEE348588
GnuPG: https://dist.ng0.infotropique.org/dist/keys/
https://www.infotropique.org https://ng0.infotropique.org