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:
parent
f4ff956e9b
commit
1d3ec979cd
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user