1
1
mirror of https://github.com/nmattia/niv.git synced 2024-09-18 19:07:19 +03:00

Use githubUpdate' in more places

This commit is contained in:
Nicolas Mattia 2019-11-21 16:56:21 +01:00
parent f4ff956e9b
commit 1d3ec979cd

View File

@ -337,7 +337,7 @@ cmdUpdate = \case
Just defaultSpec -> do Just defaultSpec -> do
fmap attrsToSpec <$> tryEvalUpdate fmap attrsToSpec <$> tryEvalUpdate
(specToLockedAttrs cliSpec <> specToFreeAttrs defaultSpec) (specToLockedAttrs cliSpec <> specToFreeAttrs defaultSpec)
(githubUpdate nixPrefetchURL githubLatestRev githubRepo) githubUpdate'
Nothing -> abortCannotUpdateNoSuchPackage packageName Nothing -> abortCannotUpdateNoSuchPackage packageName
@ -356,7 +356,7 @@ cmdUpdate = \case
let initialSpec = specToFreeAttrs defaultSpec let initialSpec = specToFreeAttrs defaultSpec
finalSpec <- fmap attrsToSpec <$> tryEvalUpdate finalSpec <- fmap attrsToSpec <$> tryEvalUpdate
initialSpec initialSpec
(githubUpdate nixPrefetchURL githubLatestRev githubRepo) githubUpdate'
pure finalSpec pure finalSpec
let (failed, sources') = partitionEithersHMS esources' let (failed, sources') = partitionEithersHMS esources'