summaryrefslogtreecommitdiff
path: root/tests/git-authenticate.scm
diff options
context:
space:
mode:
authorPhillip Davis <phdavis1027@gmail.com>2026-03-18 17:40:55 -0400
committerNguyễn Gia Phong <cnx@loang.net>2026-05-26 00:08:11 +0900
commitabbf03a2efb4a8f3863ba5860e25657a557ea743 (patch)
treeae314615e45a03cb0c5de9c35d54c3f40a46c36b /tests/git-authenticate.scm
parent5bad9d084c195c46407d123e8e71a316d743445d (diff)
import: gem: Fix null at home-page.
The RubyGems API returns "homepage_uri": null for gems with no homepage. guile-json parses JSON null as the Guile symbol 'null', which passes through into the generated package sexp as (home-page null)—an unbound variable error at evaluation time. * tests/import/gem.scm (test-no-homepage-json): New fixture. ("gem->guix-package, bald homepage_uri"): New test. * guix/import/gem.scm (non-empty-string-or-false): New procedure. (<gem>)[home-page]: Use it. * guix/import/utils.scm (non-empty-string-or-false): New exported procedure, moved to here... * guix/import/gem.scm (non-empty-string-or-false): ...from here... * guix/import/pypi.scm (non-empty-string-or-false): ...and here. Change-Id: If8f2ca32834d762c753797067ef87937503ff9f9 Reviewed-by: Carlo Zancanaro <carlo@zancanaro.id.au> Signed-off-by: Nguyễn Gia Phong <cnx@loang.net>
Diffstat (limited to 'tests/git-authenticate.scm')
0 files changed, 0 insertions, 0 deletions