guix-play/guix/import
Hartmut Goebel 45584061a9
import: crate: Trim version for names after left-most non-zero part.
This complies to how versions are matched for caret requirements in crates:
An update is allowed if the new version number does not modify the left-most
non-zero digit in the major, minor, patch grouping.

* guix/import/crate.scm (version->semver-prefix): New function.
  (make-crate-sexp)[format-inputs]: Use it.
  (make-crate-sexp): Use it to pass shorter version to package->definition.
* guix/import/utils.scm (package->definition): Change optional parameter
  APPEND-VERSION? into APPEND-VERSION?/STRING. If it is a string, append its
  value to name.
* tests/crate.scm: Adjust tests accordingly.
2020-12-02 22:09:23 +01:00
..
cabal.scm import: Fix docstring typoes. 2020-09-23 04:36:59 +02:00
cpan.scm import: cpan: Export cpan-release-module. 2020-09-15 14:57:06 +02:00
cran.scm import: utils: 'recursive-import' accepts an optional version parameter. 2020-12-02 22:09:23 +01:00
crate.scm import: crate: Trim version for names after left-most non-zero part. 2020-12-02 22:09:23 +01:00
elpa.scm import: utils: 'recursive-import' accepts an optional version parameter. 2020-12-02 22:09:23 +01:00
gem.scm import: utils: 'recursive-import' accepts an optional version parameter. 2020-12-02 22:09:23 +01:00
github.scm import: github: Gracefully handle projects that have disappeared. 2020-07-24 14:21:30 +02:00
gnome.scm import: gnome: Update for Guile-JSON 3.x. 2019-08-17 23:18:11 +02:00
gnu.scm Switch to Guile-Gcrypt. 2018-09-04 17:25:11 +02:00
hackage.scm lint: Add 'check-haskell-stackage' checker. 2020-11-21 22:11:36 -05:00
json.scm import/json: json->code: Handle files with more than one definition. 2020-04-16 23:41:52 +02:00
kde.scm import: KDE updater finds packages even in sub-directory. 2019-09-10 19:04:06 +02:00
launchpad.scm import: launchpad: Recognize more URLs. 2020-09-01 22:45:16 +05:30
opam.scm import: utils: 'recursive-import' accepts an optional version parameter. 2020-12-02 22:09:23 +01:00
print.scm import: print: Fix deprecation warning for origin-sha256. 2020-10-19 13:28:38 +02:00
pypi.scm import: utils: 'recursive-import' accepts an optional version parameter. 2020-12-02 22:09:23 +01:00
snix.scm build: Remove checks for 'nix-instantiate'. 2018-06-18 23:19:51 +02:00
stackage.scm import: utils: 'recursive-import' accepts an optional version parameter. 2020-12-02 22:09:23 +01:00
texlive.scm import: texlive: Avoid uses of '@@' in tests. 2020-01-17 14:22:08 +01:00
utils.scm import: crate: Trim version for names after left-most non-zero part. 2020-12-02 22:09:23 +01:00