"$CI_SCRIPTS_DIR"/retry.sh  cabal v2-update --index-state="@$(git show -s --format=%ct HEAD)"

update_args=
if ${CI_USE_COMMIT_INDEX_STATE:-true}; then
        update_args=--index-state="@$(git show -s --format=%ct HEAD)"
fi

"$CI_SCRIPTS_DIR"/retry.sh  cabal v2-update $update_args

Allow using latest Hackage index with CI_USE_COMMIT_INDEX_STATE=true
ci: Allow using latest Hackage index with CI_USE_COMMIT_INDEX_STATE=true
