GNU bug report logs -
#38408
[PATCH 0/3] (WIP) Semantic version aware recusive importer for crates
Previous Next
Reported by: Martin Becze <mjbecze <at> riseup.net>
Date: Thu, 28 Nov 2019 00:14:01 UTC
Severity: normal
Tags: patch
Merged with 44560,
44694
Fixed in version 44560
Done: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
Bug is archived. No further changes may be made.
Full log
Message #107 received at 38408 <at> debbugs.gnu.org (full text, mbox):
Martin Becze <mjbecze <at> riseup.net> skribis:
> * gnu/packages.scm (recusive-import-semver): New Procedure
> * gnu/packages.scm (package->definition)[arguments]: New argument, "latest"
^
This is actually guix/import/utils.scm. :-)
> * tests/import-utils.scm: tests for recusive-import-semver
> +(define* (recursive-import-semver #:key name
> + (version #f)
> + name->metadata
> + metadata->package
> + metadata-versions
> + package-dependencies
> + dependency-name
> + dependency-range
> + guix-name
> + make-sexp)
That’s intimidating. :-)
Since there’s currently a single user, the Crate importer, I would
rather have semver-handling directly in (guix import crate). Sure we
can try to write it in a way that clearly separates semver handling from
Crate-specific bits, but we shouldn’t try to make it too generic at this
point, IMO.
WDYT?
The <crate> and <crate-version> records provide the information needed
to implement what you have in mind, I think.
Thanks,
Ludo’.
This bug report was last modified 4 years and 160 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.