by eigengrau · 4y ago · 0 comments
I don’t quite follow the conclusion. Forcing values will not result in random operations on the store. Forcing values can only ever create store derivations, which is an internal representation of all derivations that were encountered while evaluating some expression. I won’t ever mutate existing data or remove anything from the store, nor will it actually build anything or fetch cached packages, so forcing values should be unproblematic. Store derivations can later be garbage collected.
But.. it doesn't really matter that much because half of the datastructures in Nix are so circular that you couldn't print them out anyway.