Merge pull request #710 from obsidiansystems/ts-thunk-cache
Put cache in thunk dir
commit45d14f3cd84c05f485b1222d2ff84984a1de27ef
authorElliot Cameron <3noch@users.noreply.github.com>
dateTue 21 Apr 2020, 14:00 (7 years ago)
parentdcd09be3c8c2aa
lib/command/src/Obelisk/Command/Thunk.hs+1−1
@@ -699,7 +699,7 @@ nixBuildThunkAttrWithCache thunkSpec thunkDir attr = do
699699 for cachePaths' $ \cachePaths ->
700700 fmap NonEmpty.head $ for cachePaths $ \cacheDir -> do
701701 let
702− cachePath = cacheDir </> attr <.> "out"
702+ cachePath = thunkDir </> cacheDir </> attr <.> "out"
703703 cacheErrHandler e
704704 | isDoesNotExistError e = pure Nothing -- expected from a cache miss
705705 | otherwise = Nothing <$ putLog Error (T.pack $ displayException e)