Improve the message printed when a core is already up-to-date #2086
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Milestone
Describe the problem
Empty string is used in the message.
To reproduce
see above
Expected behavior
upgrade
commands in many tools is to say "xxx is already at the latest version" and exit with 0, thus adopting the "no-op" semantics rather than "failure".For instance,
brew upgrade arduino-cli
prints "Warning: arduino-cli 0.31.0 already installed" and exits with 0.apt-get upgrade arduino-cli
does the same.The advantage of the no-op semantics is that in a script you can assume that exit code == 0 means that the resource is now up-to-date (regardless of whether an upgrade was performed now). With the current behavior of arduino-cli, non-zero exit code may mean both temporary failure or package up-to-date which is ambiguous in the context of the caller script.)
Arduino CLI version
arduino-cli Version: 0.31.0 Commit: 940c945 Date: 2023-02-20T15:09:19Z
Operating system
macOS
Operating system version
10.15.7
Additional context
Issue checklist
The text was updated successfully, but these errors were encountered: