---
title: "github.com/sethvargo/go-retry v0.7.0 Breaking Changes"
description: "What each github.com/sethvargo/go-retry release removed, renamed or changed: 11 breaking changes in 2 versions on Go modules, each with its source."
canonical_url: https://since.dev/packages/go/github.com/sethvargo/go-retry
last_updated: 2026-12-04
---

# 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

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](https://since.dev/calendar/go.md).

- From [v0.6.0](#v-v0-6-0) to [v0.7.0](#v-v0-7-0): 5 breaking changes in 1 version.

## github.com/sethvargo/go-retry v0.7.0 breaking changes

github.com/sethvargo/go-retry v0.7.0, released November 23, 2026: 5 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](https://pkg.go.dev/github.com/sethvargo/go-retry@v0.7.0)
- **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](https://pkg.go.dev/github.com/sethvargo/go-retry@v0.7.0)
- **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](https://pkg.go.dev/github.com/sethvargo/go-retry@v0.7.0)
- **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](https://github.com/sethvargo/go-retry/releases/tag/v0.7.0)
- **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](https://pkg.go.dev/github.com/sethvargo/go-retry@v0.7.0)

## github.com/sethvargo/go-retry v0.6.0 breaking changes

github.com/sethvargo/go-retry v0.6.0, released November 23, 2026: 6 breaking changes.

- **Removed**  

The package now requires Go 1.26 or newer, so older Go toolchains can no longer build it. [github.com](https://github.com/sethvargo/go-retry/releases/tag/v0.6.0)
- **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](https://github.com/sethvargo/go-retry/releases/tag/v0.6.0)
- **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](https://github.com/sethvargo/go-retry/releases/tag/v0.6.0)
- **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](https://github.com/sethvargo/go-retry/releases/tag/v0.6.0)
- **Behavior changed** `NewFibonacci`  

The second retry now waits one base instead of two, so retry timing changes for existing callers. [github.com](https://github.com/sethvargo/go-retry/releases/tag/v0.6.0)
- **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](https://github.com/sethvargo/go-retry/releases/tag/v0.6.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
