on master help sign in
Put cache in thunk dir
commit3c8c2aa6361420f3eaa8a1f2b208ce8497239447 authorTom Smalley <tfsmalley@gmail.com> dateTue 21 Apr 2020, 16:23 (6 years ago) parentdcd09be
1 file changed+1−1
lib/command/src/Obelisk/Command/Thunk.hs+1−1
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)