Make print-build-logs and log-format a setting #186
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#186
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We personally have never once in our life wanted to run a nix command without --print-build-logs. We are tired of needing a smart wrapper command just to add it
@rbt I think you had a patch for this right?
Maybe make the
--log-format
option to manynix
commands a global option one can set? Then I believe you could setlog-format = bar-with-logs
to get your desired behaviorbar-with-logs is not related to print-build-logs and that won't get what we're talking about here, but we would like log-format to be a setting as well. @rbt also had some work on that I believe
I thought
--log-format bar-with-logs
was equivalent to setting--print-build-logs
. See:6c10cc0eda/src/libmain/loggers.cc (L33-L36)
Ah, sorry yes you're correct about that.
🤷♀️ both could be settings as far as we're concerned, and again I'm pretty sure wiggles has existing work on this
Yeah, I'd even suggest going further and making all of the
nix
command-line options automatically also configurable vianix.conf
, although that's outside of the scope of this issueThat and this are both predicated on the same thing, which is registering handlers for config options (since many of them need some sort of initialization)
here's the @rbt patches.
https://github.com/NixOS/nix/pull/9923
https://github.com/NixOS/nix/pull/9922
Make print-build-logs a settingto Make print-build-logs and log-format a settingI couldn't quite get these patches working, FWIW. I still want this but it might be complex.
Probably needs #359