Skip to content

Commit

Permalink
Bump shake version (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
berberman authored Mar 25, 2024
1 parent c774bae commit fd9fb0a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/NvFetcher.hs
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ runNvFetcherNoCLI config@Config {..} target packageSet = do
pkgs <- Map.map pinIfUnmatch <$> runPackageSet packageSet
lastVersions <- parseLastVersions $ buildDir </> generatedJsonFileName
shakeDir <- getDataDir
-- Set shakeFiles
let shakeOptions1 = shakeConfig {shakeFiles = shakeDir}
-- Set shakeFiles and shakeVersion
let shakeOptions1 = shakeConfig {shakeFiles = shakeDir, shakeVersion = "2"}
-- shakeConfig in Config will be shakeOptions1 (not including shake extra)
shakeExtras <- initShakeExtras (config {shakeConfig = shakeOptions1}) pkgs $ fromMaybe mempty lastVersions
-- Set shakeExtra
Expand Down
3 changes: 1 addition & 2 deletions src/NvFetcher/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ instance Default Config where
{ shakeConfig =
shakeOptions
{ shakeProgress = progressSimple,
shakeThreads = 0,
shakeVersion = "1"
shakeThreads = 0
},
buildDir = "_sources",
customRules = pure (),
Expand Down

0 comments on commit fd9fb0a

Please sign in to comment.