-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add FOD hash-mismatch errors to the build log #8173
base: master
Are you sure you want to change the base?
Conversation
Thanks a lot for tackling this <3 The hash mismatch message does appear in
I guess the logsink is populated down the road in |
642f028
to
93e2dc4
Compare
Uh my bad, I've used the wrong method for writing the log. The writing is buffered, but the method I've used ( |
The `write` name is ambiguous and could lead to some funny bugs like NixOS#8173 (comment). So rename it to the more explicit `writeUnbuffered`. Besides, this method shouldn't be (and isn't) used outside of the class implementation, so mark it `protected`. This makes it more symetrical to `BufferedSource` which uses a `protected readUnbuffered` method.
Ooof, I was looking in the wrong direction 馃槄 Thanks for the explanation. Much better, works as expected now!
|
Fixes #8166.
The implementation in
local-derivation-goal.cc
is a bit too convoluted for my taste, but I don't know whether there'a an easier way for dumping an error to aSink
, so 馃しChecklist for maintainers
Maintainers: tick if completed or explain if not relevant
tests/**.sh
src/*/tests
tests/nixos/*
Priorities
Add 馃憤 to pull requests you find important.