summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorjgart <jgart@dismail.de>2026-03-27 13:43:04 -0400
committerjgart <jgart@dismail.de>2026-04-11 22:17:35 -0400
commite61b99dfb1dacf5637972c8819a2d21d9495b476 (patch)
treee036646f031d5e38f7464a5d724dff736d6e2319 /guix
parentbda50e34114a820601255fabb9615f7a8483dff1 (diff)
import: gem: Warn when rubygems-fetch fails.
* guix/import/gem.scm: Use (guix diagnostics) and (guix i18n). (gem->guix-package): Emit a warning when rubygems-fetch returns #f. Change-Id: I838cb77470ebb35f2065be7772fcd87647153ea8 Signed-off-by: jgart <jgart@dismail.de>
Diffstat (limited to 'guix')
-rw-r--r--guix/import/gem.scm13
1 files changed, 12 insertions, 1 deletions
diff --git a/guix/import/gem.scm b/guix/import/gem.scm
index ad75bf519b..6acea10717 100644
--- a/guix/import/gem.scm
+++ b/guix/import/gem.scm
@@ -8,6 +8,7 @@
;;; Copyright © 2022 Taiju HIGASHI <higashi@taiju.info>
;;; Copyright © 2022 Hartmut Goebel <h.goebel@crazy-compilers.com>
;;; Copyright © 2024 Maxim Cournoyer <maxim@guixotic.coop>
+;;; Copyright © 2026 jgart <jgart@dismail.de>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -33,6 +34,8 @@
#:use-module (guix import json)
#:use-module (guix packages)
#:use-module (guix upstream)
+ #:use-module (guix diagnostics)
+ #:use-module (guix i18n)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix base16)
#:use-module (guix base32)
@@ -158,7 +161,15 @@ Optionally include a VERSION string to fetch a specific version gem."
dependencies
licenses)
dependencies-names))
- (values #f '()))))
+ (begin
+ (if version
+ (warning
+ (G_ "version ~a of gem '~a' was not found at '~a'~%")
+ version package-name repo)
+ (warning
+ (G_ "gem '~a' not found at '~a'~%")
+ package-name repo))
+ (values #f '())))))
(define (guix-package->gem-name package)
"Given a PACKAGE built from rubygems.org, return the name of the