From 00e5bc0f9874eb9f929e917ba44bbd7b6f2ca4a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Thu, 13 Nov 2025 23:23:08 +0100 Subject: Do not require recipe and empty checkout in job definition --- src/Job.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Job.hs') diff --git a/src/Job.hs b/src/Job.hs index b40273f..1d4ade3 100644 --- a/src/Job.hs +++ b/src/Job.hs @@ -382,7 +382,7 @@ runJob job uses checkoutPath jdir = do copyRecursive (aoutStorePath aout) target bracket (liftIO $ openFile (jdir "log") WriteMode) (liftIO . hClose) $ \logs -> do - forM_ (jobRecipe job) $ \p -> do + forM_ (fromMaybe [] $ jobRecipe job) $ \p -> do (Just hin, _, _, hp) <- liftIO $ createProcess_ "" p { cwd = Just checkoutPath , std_in = CreatePipe -- cgit v1.2.3