-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
v2.4.8 breaks duration default #1373
Comments
This is the output of my own tool (https://github.com/binwiederhier/ntfy) when running with 2.4.8:
The error comes from serve.go, which reads the value here. Looking at the diff between 2.4.7 and 2.4.8, I'm pretty sure it's related to the Before:, which is a custom hook defined here. The diff is small, yet I don't fully understand what's happening. I tried to reproduce it with a minimal example, but so far without success. |
I forgot to say: Thank you very much for a fantastic piece of software. I use it in all of my tools! 🥳 |
@binwiederhier Thank you for reporting this! ❤️ 🤘🏼 |
I found a way to reproduce it: |
@binwiederhier Thank you for the detailed bug report. It is amazing. Looks like my "fix" broke this behaviour. |
@dearchap I've got a fix incoming shortly! |
My urfave/cli version is
v2.4.8
Checklist
Dependency Management
Describe the bug
The latest version breaks the duration parsing. Here's a sample pipeline that works with 2.4.7 but breaks with 2.4.8: https://github.com/binwiederhier/ntfy/runs/6150219289?check_suite_focus=true
Relevant option here: https://github.com/binwiederhier/ntfy/blob/main/cmd/serve.go#L34
The value for
keepalive-interval
now defaults to0
instead ofserver.DefaultKeepaliveInterval
which is45 * time.Second
To reproduce
https://gist.github.com/binwiederhier/b925ee20822257f55ec04271e40a1437
Observed behavior
c.Duration()
returns 0Expected behavior
c.Duration()
returns 45sAdditional context
n/a
Want to fix this yourself?
n/a
Run
go version
and paste its output hereThe text was updated successfully, but these errors were encountered: