- Fixed a bug where
ubichecked the env varCI_TOKENfor a GitLab token. This is nowCI_JOB_TOKEN, which is what GitLab actually sets in CI. - Added a
--colorflag, settable withUBI_COLOR, which acceptsauto,always, ornever. Previously,ubialways emitted ANSI color escapes, even when its output was redirected to a file or a pipe, which made saved logs hard to read. The new default,auto, colorizes output only when stderr is a terminal and theNO_COLORenv var is not set. SettingNO_COLORto the empty string or to0is treated as not setting it at all. - Breaking change for library users:
ubi::init_loggernow takes a second argument, aubi::ColorChoice. PassColorChoice::default()to keep the previous behavior of colorizing output, except that it is now suppressed when stderr is not a terminal orNO_COLORis set. - Fixed up the colors for logging. The
DEBUGlabel was black, which made it unreadable in terminals with a dark background. It is now cyan.INFOlevel messages are now green. Previously, they looked identical toDEBUGlevel messages. - When
ubiwas asked to install an executable to a path where a directory already existed, it failed with a bareIs a directory (os error 21). It now gives a more helpful message with guidance on how to fix the problem. In addition, it checks some various cases that would prevent the install from working before it downloads anything. However, not all cases can be checked before download. Inspired by a report from @oalders (Olaf Alders). GH #136.
What happened to 0.11.0? It was lost in the mix as I updated my release tooling.