github.com/sethvargo/go-retry breaking changes
github.com/sethvargo/go-retry v0.7.0 (November 23, 2026) is its newest release with breaking changes, 5 of them. The first: Removed github.com/sethvargo/go-retry.Backoff.Next. Every breaking API change we have recorded in github.com/sethvargo/go-retry on Go modules: 11 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version v0.7.0, released November 23, 2026.
Its v0.6.0 release requires Go 1.26 or later. Go end of life dates.
github.com/sethvargo/go-retry v0.7.0 breaking changes
- Removed
github.com/sethvargo/go-retry.Backoff.Next
The Next method is removed. Call the backoff directly as b(attempt), where attempt is the number of retries so far, starting at 0. pkg.go.dev - Removed
github.com/sethvargo/go-retry.BackoffFunc
BackoffFunc is removed. Write custom backoffs and middleware as plain functions with the signature func(attempt uint64) (time.Duration, bool). pkg.go.dev - Removed
github.com/sethvargo/go-retry.WithMaxDuration
WithMaxDuration is removed. Set a deadline on the context passed to Do with context.WithTimeout instead; the deadline also cancels a call to f still running. pkg.go.dev - Behavior changed
WithMaxRetries
Each Do call now counts its retries from 0, so a shared WithMaxRetries no longer limits retries across calls combined. To keep one limit across calls, count retries in your own middleware. github.com - Signature changed
github.com/sethvargo/go-retry.Backoff
Backoff is now a function of the attempt number instead of an interface. Code that passes only the built-in backoffs and middleware to Do still compiles, but custom backoffs must be rewritten. pkg.go.dev
github.com/sethvargo/go-retry v0.6.0 breaking changes
- Removed
The package now requires Go 1.26 or newer, so older Go toolchains can no longer build it. github.com - Behavior changed
Direct calls to Next now see a wait of 0 instead of a negative value from the inner backoff; Do already waited 0. github.com - Behavior changed
Do
When the context ends during retries, the error is now the context error joined with the last error, so direct equality checks no longer match; use errors.Is. github.com - Behavior changed
DoValue
When the context ends during retries, the error is now the context error joined with the last error, so direct equality checks no longer match; use errors.Is. github.com - Behavior changed
NewFibonacci
The second retry now waits one base instead of two, so retry timing changes for existing callers. github.com - Behavior changed
WithJitterPercent
The jitter factor is now continuous instead of whole-percent steps, and the range for j=5 changes from 0.96x to 1.05x into 0.95x to 1.05x. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.