cli
cli copied to clipboard
formatters(image): prevent image size from displaying scientific notation
fixes #3091 dupe #4459
- What I did
HumanSizeWithPrecision
(which was configured to 3 significant digits) was replaced with HumanSize
(which defaults to 4) in order to prevent scientific notation from appearing under certain edge cases. This is a known bug (docker/go-units#44) in the affected dependency.
In practical terms, adjusting the precision from 3 to 4 should cause no issues with users' current expectations and usage of the cli.
- How to verify it
Regression tests implemented to prevent future breakage.
- Description for the changelog
formatters(image): prevent image size from displaying scientific notation under edge cases