-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression in parsing Duration flag #333
Comments
This also seems to be breaking our 32-bit testing. See: prometheus/node_exporter#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 |
Thank you @alecthomas and @SuperQ 🙏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#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
The text was updated successfully, but these errors were encountered: