Skip to content

build(deps): bump github.com/sethvargo/go-retry from 0.5.0 to 0.7.0 in the gomod group across 1 directory - #3761

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/gomod-da62663008
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/go_modules/gomod-da62663008

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 3, 2026

Copy link
Copy Markdown
Contributor

Bumps the gomod group with 1 update in the / directory: github.com/sethvargo/go-retry.

Updates github.com/sethvargo/go-retry from 0.5.0 to 0.7.0

Release notes

Sourced from github.com/sethvargo/go-retry's releases.

v0.7.0

Breaking changes

Backoff is now a function instead of an interface:

type Backoff func(attempt uint64) (next time.Duration, stop bool)

Code that only passes the built-in backoffs and middleware to Do compiles without changes. The cases below need edits. The README's Upgrading from v0.6 section has a before and after for each one.

  • b.Next() is removed. Call b(attempt) instead, where attempt is the number of retries made so far, starting at 0.
  • BackoffFunc is removed. Write custom backoffs and middleware as a func(attempt uint64) (time.Duration, bool).
  • A type with a Next() method no longer satisfies Backoff. Add an attempt uint64 parameter to Next and pass the method value to Do, for example retry.Do(ctx, (&myBackoff{}).Next, f).
  • WithMaxDuration is removed. Use context.WithTimeout on the context passed to Do. The returned error wraps both context.DeadlineExceeded and the last error from f. Unlike WithMaxDuration, the deadline also cancels a call to f that is still running.
  • Do calls that share one backoff no longer share a retry count. Each Do call counts its retries from 0. Before, a WithMaxRetries(100, b) shared by several Do calls allowed 100 retries across all of them combined. The migration guide has a middleware that keeps one limit across calls.

Other changes

  • One backoff value can be reused across Do calls and shared between goroutines.
  • A Do call that succeeds on the first try allocates nothing, down from 4 allocations when the backoff is built for each call.
  • Every example has an // Output: block and runs under go test.

What's Changed

Full Changelog: sethvargo/go-retry@v0.6.0...v0.7.0

v0.6.0

Breaking changes

  • Requires Go 1.26 or newer. (sethvargo/go-retry#56)
  • NewFibonacci returns 1, 1, 2, 3, 5, as documented. It previously returned 1, 2, 3, 5, 8, so the second retry waited two bases instead of one. (sethvargo/go-retry#55)
  • When the context ends during retries, Do and DoValue return the context error joined with the last error from the retried function. Comparisons like err == context.DeadlineExceeded no longer match; use errors.Is instead. (sethvargo/go-retry#60)
  • All built-in middleware clamps a negative wait from the inner backoff to 0. Do already waited 0 for a negative value, so only direct calls to Next see a difference. (sethvargo/go-retry#59, sethvargo/go-retry#62)
  • WithJitterPercent uses a continuous random factor. The factor previously moved in whole-percent steps, so j=5 produced only 10 distinct values between 0.96x and 1.05x. The range is now 0.95x to 1.05x. (sethvargo/go-retry#59)

What's Changed

Full Changelog: sethvargo/go-retry@v0.5.0...v0.6.0

Commits
  • b471b87 Make Backoff a stateless function of the attempt (#63)
  • 6eb0a2c Clamp negative waits in MaxRetries and MaxDuration (#62)
  • ebcb15c Return the last error when the context ends (#60)
  • 40f9b61 Clamp negative waits and smooth jitter percent (#59)
  • 05493a3 Cut allocations in Do and Fibonacci (#58)
  • 377a18d Fix stale godoc and README snippets (#57)
  • 4dd45fe Require Go 1.26 and tighten tests and CI (#56)
  • f0b4b9e Return 1, 1, 2, 3 from Fibonacci backoff (#55)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the gomod group with 1 update in the / directory: [github.com/sethvargo/go-retry](https://github.com/sethvargo/go-retry).


Updates `github.com/sethvargo/go-retry` from 0.5.0 to 0.7.0
- [Release notes](https://github.com/sethvargo/go-retry/releases)
- [Commits](sethvargo/go-retry@v0.5.0...v0.7.0)

---
updated-dependencies:
- dependency-name: github.com/sethvargo/go-retry
  dependency-version: 0.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: gomod
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants