From e79f45a737db3883629e3491dfac39f4da52726c Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 9 Sep 2024 13:06:25 -0700 Subject: [PATCH] ;tools: shake build: fix with no arguments --- Shake.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Shake.hs b/Shake.hs index 1e4df0f80..5d8f6d6ad 100755 --- a/Shake.hs +++ b/Shake.hs @@ -586,8 +586,9 @@ main = do -- This may also update .cabal files from package.yaml files, and/or install haskell deps. phony "build" $ do let - pkgs | null args = packages - | otherwise = args + args' = drop 1 args + pkgs | null args' = packages + | otherwise = args' sequence_ [ do need $ fromMaybe [] $ lookup pkg embeddedFiles cmd Shell "stack build " pkg :: Action ()