cli
cli copied to clipboard
CLI-979: Consolidate update-check logic
CommandBase::hasUpdate()
, which runs on most commands other than self-update
, uses subtly different logic than the upstream self-update library to check whether updates are available. This leads to weird problems like #1402. We should consolidate this logic with the upstream library so prevent problems like this.
Related I think: https://github.com/consolidation/self-update/issues/8