~aasg/snowweb

994b7753a30e77f03ff42c9b090abed4d913d64f — Aluísio Augusto Silva Gonçalves 2 months ago 7caa04c
Don't cache Nix flake references

If we're told to rebuild, re-fetch the flake (or at least don't blindly
assume the cache is up to date).
1 files changed, 1 insertions(+), 1 deletions(-)

M internal/nix/nix.go
M internal/nix/nix.go => internal/nix/nix.go +1 -1
@@ 16,7 16,7 @@ import (
// runNixCommand runs an arbitrary Nix command, and deserializes its
// JSON output.
func runNixCommand(result interface{}, args ...string) error {
	args = append([]string{"--experimental-features", "nix-command flakes"}, args...)
	args = append([]string{"--refresh", "--experimental-features", "nix-command flakes"}, args...)
	cmd := exec.Command("nix", args...)
	cmd.Stderr = os.Stderr
	out, err := cmd.Output()