GNU bug report logs -
#55242
[PATCH 01/10] guix: import: Print the number of packages at the end.
Previous Next
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
---
this will be a series of patches that were needed to be able to
(mostly) successfully run these two imports (go-ethereum and
ethersphere/bee):
RUN=12
clear && ./pre-inst-env guix import go -r --pin-versions github.com/ethersphere/bee <at> v1.5.1 > >(tee -a ~/workspace/guix/importing/bee-run-${RUN}.scm) 2> >(tee -a ~/workspace/guix/importing/bee-run-${RUN}.log >&2)
RUN=36
clear && ./pre-inst-env guix import go -r --pin-versions github.com/ethereum/go-ethereum <at> v1.10.17 > >(tee -a ~/workspace/guix/importing/go-ethereum-run-${RUN}.scm) 2> >(tee -a ~/workspace/guix/importing/go-ethereum-run-${RUN}.log >&2)
note that i only have a mediocre knowledge of the golang
infrastructure, so this should be reviewed by someone who
more deeply understands the golang build process, and its
implementation within guix.
i think most of it is not very controversial, maybe except
the last commit.
i'm willing to reshape this under the guidance of someone who
has a better bird's eye view perspective on this all.
guix/scripts/import.scm | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/guix/scripts/import.scm b/guix/scripts/import.scm
index 40fa6759ae..891f558b97 100644
--- a/guix/scripts/import.scm
+++ b/guix/scripts/import.scm
@@ -127,10 +127,14 @@ (define-command (guix-import . args)
('define-public _ ...)))
(print expr))
((? list? expressions)
- (for-each (lambda (expr)
- (print expr)
- (newline))
- expressions))
+ (let ((count 0))
+ (for-each (lambda (expr)
+ (print expr)
+ (set! count (1+ count))
+ (newline))
+ expressions)
+ (format (current-warning-port)
+ (G_ "Imported ~a packages~%") count)))
(x
(leave (G_ "'~a' import failed~%") importer))))
(let ((hint (string-closest importer importers #:threshold 3)))
--
2.35.1
This bug report was last modified 3 years and 2 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.