Skip to content

Conversation

ldez
Copy link
Member

@ldez ldez commented Dec 24, 2024

Currently, if the timeout is <=0, you have an immediate "context deadline exceeded".

This is useless, so now timeout <=0 means infinite timeout.

The default timeout is not changed.

Fixes #957

@ldez ldez added enhancement New feature or improvement area: config Related to .golangci.yml and/or cli options labels Dec 24, 2024
@ldez ldez added this to the next milestone Dec 24, 2024
@ldez ldez merged commit 286701c into golangci:master Dec 25, 2024
15 checks passed
@ldez ldez deleted the fix/timeout-zero branch December 25, 2024 11:58
@ldez ldez modified the milestones: next, v1.63 Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: config Related to .golangci.yml and/or cli options enhancement New feature or improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--timeout does not validate passed value and gives confusing error

4 participants