#13012·renovate

Ignore retracted versions of go dependencies

Author: secustorCreated Dec 8, 2021Updated Sep 29, 2026
Labelspriority-3-mediumdatasource:go

What would you like Renovate to be able to do?

Currently Renovate picks simply the tags of a dependency and uses semver to get the highest version.
In case the highest version is retracted this leads to unwanted upgrades.

Example: https://pkg.go.dev/k8s.io/[email protected]?tab=versions https://github.com/kubernetes/client-go/blob/v1.5.2/go.mod

Reproduction repo: https://github.com/secustor/renovate-go-redact-test

If you have any ideas on how this should be implemented, please tell us here.

  1. Get versions as it is done currently
  2. Fetch go.mod of highest semantic version
  3. extract retract directive https://go.dev/ref/mod#go-mod-file-retract
  4. Remove matching tags

Is this a feature you are interested in implementing yourself?

Maybe