install: always do stack update, to help ensure we get the latest

https://github.com/commercialhaskell/stack/issues/5112
This commit is contained in:
Simon Michael 2019-12-03 11:28:16 -08:00
parent b58a350803
commit 3d98f0b5aa

View File

@ -987,6 +987,8 @@ if has_stack ; then
fi
# install stack now (or if new enough, just print its precise version)
ensure_stack
echo "Updating stack's package db to see latest packages"
try_info stack update
# else if cabal is installed, use cabal
elif has_cmd cabal ; then
echo "no stack installed, cabal $(cabal --numeric-version) installed; using cabal to install hledger in $HOME/.cabal/bin"