From 2d6075d13a9d2cf023cb34a079b0c071af9ee650 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Wed, 30 Dec 2020 09:10:07 -0500 Subject: bild: try to fix the remote bild message again --- Biz/Bild.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Biz') diff --git a/Biz/Bild.hs b/Biz/Bild.hs index 27f1f50..23086a7 100644 --- a/Biz/Bild.hs +++ b/Biz/Bild.hs @@ -203,7 +203,7 @@ analyze s = do out = "", builder = if host == "lithium" - then user <> "@lithium" + then mempty else join [ "ssh://", @@ -277,7 +277,9 @@ build target@Target {..} = do putText <| "bild: nix: " <> Namespace.toPath namespace let outDir = root "_/bild/nix" Dir.createDirectoryIfMissing True outDir - putText <| "bild: nix: builder: " <> Text.pack builder + if null builder + then putText <| "bild: nix: local" + else putText <| "bild: nix: remote: " <> Text.pack builder Process.callProcess "nix-build" [ path, -- cgit v1.2.3