diff --git a/pkgs/oizys/oizys-go/cmd/dry.go b/pkgs/oizys/oizys-go/cmd/dry.go index 1f6ac1d..308a3b2 100644 --- a/pkgs/oizys/oizys-go/cmd/dry.go +++ b/pkgs/oizys/oizys-go/cmd/dry.go @@ -11,7 +11,7 @@ var dryCmd = &cobra.Command{ Short: "poor man's nix flake check", Run: func(cmd *cobra.Command, args []string) { oizys.CheckFlake(flake) - oizys.NixDryRun(oizys.Output(flake, host)) + oizys.NixDryRun(flake, host) }, } diff --git a/pkgs/oizys/oizys-go/pkg/oizys/oizys.go b/pkgs/oizys/oizys-go/pkg/oizys/oizys.go index 160742d..03e448e 100644 --- a/pkgs/oizys/oizys-go/pkg/oizys/oizys.go +++ b/pkgs/oizys/oizys-go/pkg/oizys/oizys.go @@ -66,7 +66,8 @@ func ParseDryRunOutput(nixOutput string) { ShowTable(columns, rows) } -func NixDryRun(path string) { +func NixDryRun(flake string, host string) { + path := Output(flake, host) cmd := exec.Command("nix", "build", path, "--dry-run") s := spinner.New( spinner.CharSets[14], @@ -77,6 +78,7 @@ func NixDryRun(path string) { output, err := cmd.CombinedOutput() s.Stop() if err != nil { + fmt.Println(string(output)) log.Fatal(err) } ParseDryRunOutput(string(output))