[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55242] [PATCH 08/10] guix: import: go: Modules in a subdir and pref
From: |
Attila Lendvai |
Subject: |
[bug#55242] [PATCH 08/10] guix: import: go: Modules in a subdir and prefixed tags. |
Date: |
Mon, 09 May 2022 12:50:40 +0000 |
> > + (log.info "~%Processing go module ~A@~A" module-path version)
>
>
> Why a newline at the beginning instead of the end? Also, why the
it makes the log more readable.
> logging? If I do "guix import go foobar", wouldn't I know in advance
> it will process the foobar module? And in case of --recursive,
> wouldn't I know after the fact which modules were processed?
here's how i was working on this codebase:
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) && beep
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) && beep
IOW, i was repeatedly firing long-running imports whose output i stored in
versioned files. when a run was finished, i inspected the log and the output
file (containing hundreds of packages).
whenever i had to understand what went wrong -- which often manifested in
successfull runs producing broken output (i.e. no errors/backtraces) --, i
added log statements to see what's happening. i could have deleted the printfs,
and then re-add them again a gazillion times, or just leave them there for the
upcoming programmers (which includes me), conditionally compiled in with the
help of a macro.
background: in my lisp codebase emacs colors the log statement gray, and the
logging lib i'm using in CL has a separate compile-time and a runtime log
level. IOW, i can eliminate the entire runtime logging overhead, and most of
the code readability overhead.
--
• attila lendvai
• PGP: 963F 5D5F 45C7 DFCD 0A39
--
“Associate yourself with people of good quality, for it is better to be alone
than in bad company.”
— Booker T. Washington (1856–1915)
- [bug#55242] [PATCH 10/10] guix: import: go: Better handling of /v2 in the module path., (continued)
- [bug#55242] [PATCH 04/10] guix: import: go: Fix the interpretation of the replace directive., Attila Lendvai, 2022/05/03
- [bug#55242] [PATCH 08/10] guix: import: go: Modules in a subdir and prefixed tags., Attila Lendvai, 2022/05/03
- [bug#55242] [PATCH 08/10] guix: import: go: Modules in a subdir and prefixed tags., Maxime Devos, 2022/05/03
- [bug#55242] [PATCH 08/10] guix: import: go: Modules in a subdir and prefixed tags., Maxime Devos, 2022/05/03
- [bug#55242] [PATCH 08/10] guix: import: go: Modules in a subdir and prefixed tags., Maxime Devos, 2022/05/03
- [bug#55242] [PATCH 08/10] guix: import: go: Modules in a subdir and prefixed tags., Maxime Devos, 2022/05/03
- [bug#55242] [PATCH 08/10] guix: import: go: Modules in a subdir and prefixed tags., Maxime Devos, 2022/05/03
- [bug#55242] [PATCH 08/10] guix: import: go: Modules in a subdir and prefixed tags., Maxime Devos, 2022/05/03
- [bug#55242] [PATCH 08/10] guix: import: go: Modules in a subdir and prefixed tags., Maxime Devos, 2022/05/03
- [bug#55242] [PATCH 05/10] guix: import: go: Harden sxml->texi conversion., Attila Lendvai, 2022/05/03
- [bug#55242] [PATCH 02/10] guix: import: go: Rename go.pkg.dev-info to pkg.go.dev-info., Maxime Devos, 2022/05/03