Closed linki closed 1 year ago
This also seems to be breaking our 32-bit testing. See: https://github.com/prometheus/node_exporter/pull/2622
It looks like the v2 of this library may fix the issues.
@alecthomas, can you cut a new tag with #336?
👍
Tagged 2.3.2
2.3.2
fixed it for me: https://github.com/linki/chaoskube/commit/c4b9b0d69175b4ecefd3921e5690406782ae09ca
Thank you @alecthomas and @SuperQ 🙏
https://github.com/alecthomas/kingpin/pull/329 introduced a difference in parsing a
DurationVar
compared to the old version.Unfortunately, this breaks the old behaviour when the duration was a negative value. The most common use case is probably to have a
Default("-1s")
to denote that the value isn't set at all. Similarly a--some-duration=""
would previously fail but is now treated as0s
. Here are the differences that I can observe:In practice this leads to the following (
some-duration
is aDurationVar
)./cc @adowair