[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55242] [PATCH 01/10] guix: import: Print the number of packages at
From: |
Attila Lendvai |
Subject: |
[bug#55242] [PATCH 01/10] guix: import: Print the number of packages at the end. |
Date: |
Tue, 3 May 2022 13:16:12 +0200 |
---
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@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@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
- [bug#55242] [PATCH 01/10] guix: import: Print the number of packages at the end.,
Attila Lendvai <=
- [bug#55242] [PATCH 02/10] guix: import: go: Rename go.pkg.dev-info to pkg.go.dev-info., Attila Lendvai, 2022/05/03
- [bug#55242] [PATCH 06/10] guix: import: go: Add a local duplicate of http-fetch., Attila Lendvai, 2022/05/03
- [bug#55242] [PATCH 03/10] guix: import: go: Add mockup logging facility., Attila Lendvai, 2022/05/03
- [bug#55242] [PATCH 07/10] guix: import: go: More resilience wrt network errors; add logging., Attila Lendvai, 2022/05/03
- [bug#55242] [PATCH 07/10] guix: import: go: More resilience wrt network errors; add logging., Maxime Devos, 2022/05/03
- [bug#55242] [PATCH 07/10] guix: import: go: More resilience wrt network errors; add logging., Attila Lendvai, 2022/05/03
- [bug#55242] [PATCH 07/10] guix: import: go: More resilience wrt network errors; add logging., Maxime Devos, 2022/05/03
- [bug#55242] [PATCH 07/10] guix: import: go: More resilience wrt network errors; add logging., Attila Lendvai, 2022/05/09
- [bug#55242] [PATCH 07/10] guix: import: go: More resilience wrt network errors; add logging., Maxime Devos, 2022/05/09