-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
area/v2relates to / is being considered for v2relates to / is being considered for v2kind/bugdescribes or fixes a bugdescribes or fixes a bugstatus/triagemaintainers still need to look into thismaintainers still need to look into this
Milestone
Description
My urfave/cli version is
v2.4.8
Checklist
- Are you running the latest v2 release? The list of releases is here.
- Did you check the manual for your release? The v2 manual is here
- Did you perform a search about this problem? Here's the Github guide about searching.
Dependency Management
- My project is using go modules.
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 to 0 instead of server.DefaultKeepaliveInterval which is 45 * time.Second
To reproduce
https://gist.github.com/binwiederhier/b925ee20822257f55ec04271e40a1437
Observed behavior
c.Duration() returns 0
Expected behavior
c.Duration() returns 45s
Additional context
n/a
Want to fix this yourself?
n/a
Run go version and paste its output here
go version go1.18.1 linux/amd64
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/v2relates to / is being considered for v2relates to / is being considered for v2kind/bugdescribes or fixes a bugdescribes or fixes a bugstatus/triagemaintainers still need to look into thismaintainers still need to look into this