Skip to content
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

feat: disable timeout if timeout <= 0 #5250

Merged
merged 6 commits into from
Dec 25, 2024
Merged

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
pkg/commands/run.go Outdated Show resolved Hide resolved
@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