[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#38408] [PATCH v4 2/6] gnu: added new procedure, recusive-import-sem
From: |
Ludovic Courtès |
Subject: |
[bug#38408] [PATCH v4 2/6] gnu: added new procedure, recusive-import-semver |
Date: |
Thu, 19 Dec 2019 23:07:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Martin Becze <address@hidden> 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’.
- [bug#38408] [PATCH v4 0/6] Semantic version aware recusive importer for crates, Martin Becze, 2019/12/10
- [bug#38408] [PATCH v4 4/6] added "#:skip-build? #t" to the output of (make-crate-sexp). Most the the packages imported will be libaries and won't need to build. The top level package will build them though., Martin Becze, 2019/12/10
- [bug#38408] [PATCH v4 5/6] guix: crate: Depublicated dependencies, Martin Becze, 2019/12/10
- [bug#38408] [PATCH v4 3/6] Rewrote some of guix/import/crate.scm to use recursive-import-semver and updated script and test., Martin Becze, 2019/12/10
- [bug#38408] [PATCH v4 2/6] gnu: added new procedure, recusive-import-semver, Martin Becze, 2019/12/10
- [bug#38408] [PATCH v4 2/6] gnu: added new procedure, recusive-import-semver,
Ludovic Courtès <=
- [bug#38408] [PATCH v4 6/6] guix: import: recursive-import-semver: allow the range of a package to be specified when begining import., Martin Becze, 2019/12/10