1
1
mirror of https://github.com/nmattia/niv.git synced 2024-09-16 01:47:08 +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'