1
1
mirror of https://github.com/nmattia/niv.git synced 2024-12-01 15:56:03 +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
fmap attrsToSpec <$> tryEvalUpdate
(specToLockedAttrs cliSpec <> specToFreeAttrs defaultSpec)
(githubUpdate nixPrefetchURL githubLatestRev githubRepo)
githubUpdate'
Nothing -> abortCannotUpdateNoSuchPackage packageName
@ -356,7 +356,7 @@ cmdUpdate = \case
let initialSpec = specToFreeAttrs defaultSpec
finalSpec <- fmap attrsToSpec <$> tryEvalUpdate
initialSpec
(githubUpdate nixPrefetchURL githubLatestRev githubRepo)
githubUpdate'
pure finalSpec
let (failed, sources') = partitionEithersHMS esources'