on master help sign in
Ignore all attr-caches in getLocalPkgs
commit4e3bd73b6e396b3e7cbbe4b5b6a5a14e66414c0c authorTom Smalley <tfsmalley@gmail.com> dateThu 9 Apr 2020, 19:23 (7 years ago) parent7e69acc
1 file changed+2−2
lib/command/src/Obelisk/Command/Run.hs+2−2
lib/command/src/Obelisk/Command/Run.hs+2−2
@@ -64,7 +64,7 @@ import Obelisk.CliApp (
6464 withSpinner,
6565 )
6666import Obelisk.Command.Nix
67−import Obelisk.Command.Project (nixShellWithPkgs, toImplDir, withProjectRoot, findProjectAssets)
67+import Obelisk.Command.Project (nixShellWithPkgs, withProjectRoot, findProjectAssets)
6868import Obelisk.Command.Thunk (attrCacheFileName)
6969import Obelisk.Command.Utils (findExePath, ghcidExePath)
7070
@@ -164,7 +164,7 @@ getLocalPkgs root = do
164164 let exclusions = filter (/= root) $ map takeDirectory obeliskPaths
165165 fmap (map (makeRelative ".")) $ runFind $
166166 ["-L", root, "(", "-name", "*.cabal", "-o", "-name", Hpack.packageConfig, ")", "-a", "-type", "f"]
167− <> concat [["-not", "-path", p </> "*"] | p <- (toImplDir "*" </> attrCacheFileName) : exclusions]
167+ <> concat [["-not", "-path", p </> "*"] | p <- ("*" </> attrCacheFileName) : exclusions]
168168 where
169169 runFind args = do
170170 (_exitCode, out, err) <- readCreateProcessWithExitCode $ proc findExePath args