Recursive crate importer ignores specified version

  • Done
  • quality assurance status badge
Details
3 participants
  • Ludovic Courtès
  • Martin Becze
  • Valentin Ignatev
Owner
unassigned
Submitted by
Valentin Ignatev
Severity
normal
V
V
Valentin Ignatev wrote on 22 Dec 2019 19:56
(address . bug-guix@gnu.org)
CADXmXki_-5yU6Wr2wefORu2K7MwL3NJa8GH66jM9_W_r6xyDRg@mail.gmail.com
When I'm trying to recursively import specific crate version, it
imports the latest version instead:

guix import crate --recursive notify@4.0.14 gives this output:
following redirection to
following redirection to
following redirection to

And so on, so it follows notify-5.0.0 instead of 4.0.14

Regards,
Valentin Ignatev
Attachment: crate_importer.png
M
M
Martin Becze wrote on 26 Dec 2019 04:19
(name . Valentin Ignatev)(address . valentignatev@gmail.com)
80e9d385ab6ffe18f1ff3120feea56b2@riseup.net
On 2019-12-22 18:56, Valentin Ignatev wrote:
Toggle quote (16 lines)
> When I'm trying to recursively import specific crate version, it
> imports the latest version instead:
>
> guix import crate --recursive notify@4.0.14 gives this output:
> following redirection to
> `https://static.crates.io/crates/notify/notify-5.0.0-pre.1.crate'...
> following redirection to
> `https://static.crates.io/crates/anymap/anymap-0.12.1.crate'...
> following redirection to
> `https://static.crates.io/crates/bitflags/bitflags-1.2.1.crate'...
>
> And so on, so it follows notify-5.0.0 instead of 4.0.14
>
> Regards,
> Valentin Ignatev

Currently the recusive importer doesn't respect version numbers.
Progress is being made on this in issue 38408

-Martin Becze
V
V
Valentin Ignatev wrote on 26 Dec 2019 06:25
(name . Martin Becze)(address . mjbecze@riseup.net)
CADXmXkiFYgdQC_4eOsgfSt44Pt2sj2sz-oWuq_57uvu+zcSwOA@mail.gmail.com
Hey Martin, thanks! I'll follow that one then!

I guess this bug can be closed since there's already quite a
discussion in #38408

Valentin

On 12/26/19, Martin Becze <mjbecze@riseup.net> wrote:
Toggle quote (23 lines)
> On 2019-12-22 18:56, Valentin Ignatev wrote:
>> When I'm trying to recursively import specific crate version, it
>> imports the latest version instead:
>>
>> guix import crate --recursive notify@4.0.14 gives this output:
>> following redirection to
>> `https://static.crates.io/crates/notify/notify-5.0.0-pre.1.crate'...
>> following redirection to
>> `https://static.crates.io/crates/anymap/anymap-0.12.1.crate'...
>> following redirection to
>> `https://static.crates.io/crates/bitflags/bitflags-1.2.1.crate'...
>>
>> And so on, so it follows notify-5.0.0 instead of 4.0.14
>>
>> Regards,
>> Valentin Ignatev
>
> Currently the recusive importer doesn't respect version numbers.
> Progress is being made on this in issue 38408
> https://issues.guix.gnu.org/issue/38408
>
> -Martin Becze
>
L
L
Ludovic Courtès wrote on 30 Dec 2019 23:20
(name . Valentin Ignatev)(address . valentignatev@gmail.com)(address . 38709-done@debbugs.gnu.org)
87d0c5zc9l.fsf@gnu.org
Hi Valentin,

Valentin Ignatev <valentignatev@gmail.com> skribis:

Toggle quote (13 lines)
> When I'm trying to recursively import specific crate version, it
> imports the latest version instead:
>
> guix import crate --recursive notify@4.0.14 gives this output:
> following redirection to
> `https://static.crates.io/crates/notify/notify-5.0.0-pre.1.crate'...
> following redirection to
> `https://static.crates.io/crates/anymap/anymap-0.12.1.crate'...
> following redirection to
> `https://static.crates.io/crates/bitflags/bitflags-1.2.1.crate'...
>
> And so on, so it follows notify-5.0.0 instead of 4.0.14

Commit c7ca707b59304a978cab8c5c25401259c6c18214 should fix this.

Martin Becze <mjbecze@riseup.net> skribis:

Toggle quote (4 lines)
> Currently the recusive importer doesn't respect version numbers.
> Progress is being made on this in issue 38408
> https://issues.guix.gnu.org/issue/38408

Yes, that will come in handy, though I think
c7ca707b59304a978cab8c5c25401259c6c18214 does provides the immediate fix
for the issue at hand.

Thanks,
Ludo’.
Closed
?