marienz / nix-doom-emacs-unstraightened

Builds Doom Emacs using Nix
Apache License 2.0
27 stars 1 forks source link

warning: could not update mtime for file #13

Open JonathanReeve opened 4 weeks ago

JonathanReeve commented 4 weeks ago

nix-doom-emacs-unstraightened causes nixos-rebuild to spew out about a thousand warnings that look like htis:

warning: could not update mtime for file '/root/.cache/nix/gitv3/1046h8msjsqdw1zsrbsza1c6q10hllxgy9hh76hyklfl0kc6s0f2/refs/heads/HEAD': No such file or directory
warning: could not update mtime for file '/root/.cache/nix/gitv3/1qzhy9ay3vh6696wn8xyyaz9lh6p8j9s9in1ggp2z0c0qv94w6s1/refs/heads/HEAD': No such file or directory

I'm not sure what's gonig on here—is nix-doom-emacs-unstraightened looking for cache files that don't exist on my systems (or other systems)?

marienz commented 4 weeks ago

I think these are a side effect of 2f89220bdcbf8118db82753672684d8e27d4fc4c. They should be safe to ignore (Nix seems to be attempting to mark the cache as fresh for something it doesn't actually cache). But if you see them on every build (not just the first one) and/or builds after the first one are slow it's possible my workaround for one caching issue is causing another caching issue...

Which version of Nix are you seeing this with?

Is rerunning nixos-rebuild reasonably fast? (Without working around that caching issue it can take minutes...)?

If this is "just" noise then I apologize but I don't know how to silence it (until https://github.com/NixOS/nix/issues/10773 is fixed upstream at which point I'll drop my workaround).

marienz commented 1 week ago

(I've dropped the workaround, at least temporarily, see #14. So you should not currently be seeing these messages. I may reinstate the workaround later depending on where #14 goes.)