Skip to content

sarahhodne/renovate-github-releases-bug-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Renovate github-releases bug reproduction

This repository is a minimal reproduction for a Renovate bug I have noticed.

current behaviour

The logs pick up the goreleaser version in the repro file, and correctly parses the current version as v0.167.0, however, Renovate does not think there's a new version despite there being many new versions:

https://github.com/goreleaser/goreleaser/releases

DEBUG: packageFiles with updates
{
  "config": {
    "regex": [
      {
        "packageFile": "repro",
        "deps": [
          {
            "depName": "goreleaser/goreleaser",
            "currentValue": "v0.167.0",
            "currentDigest": "9939aabfcf20302a9569a50502f6a7000bbb5a6f5574ddc93111cbd6cc80ec3e",
            "datasource": "github-releases",
            "replaceString": "GORELEASER_VERSION=\"v0.167.0\"\nGORELEASER_CHECKSUM=\"9939aabfcf20302a9569a50502f6a7000bbb5a6f5574ddc93111cbd6cc80ec3e\"",
            "depIndex": 0,
            "updates": [],
            "warnings": [],
            "versioning": "semver",
            "sourceUrl": "https://github.com/goreleaser/goreleaser",
            "currentVersion": "v0.167.0",
            "isSingleVersion": true,
            "fixedVersion": "v0.167.0"
          }
        ],
        "matchStrings": [
          "GORELEASER_VERSION=\"(?<currentValue>.*?)\"\\s+GORELEASER_CHECKSUM=\"(?<currentDigest>.*?)\""
        ],
        "depNameTemplate": "goreleaser/goreleaser",
        "datasourceTemplate": "github-releases"
      }
    ]
  }
}

expected behaviour

Renovate opens a PR upgrading goreleaser to the latest version (v1.7.0 at the time of writing).

noteworthy

I noticed that v0.167.0 is old enough that it doesn't show in the list of releases in the API without paginating:

❯ curl --silent 'https://api.github.com/repos/goreleaser/goreleaser/releases' | jq 'map(.name)'
[
  "v1.7.0",
  "v1.6.3",
  "v1.6.2",
  "v1.6.1",
  "v1.6.0",
  "v1.5.0",
  "v1.4.1",
  "v1.4.0",
  "v1.3.1",
  "v1.3.0",
  "v1.2.5",
  "v1.2.4",
  "v1.2.3",
  "v1.2.2",
  "v1.2.1",
  "v1.2.0",
  "v1.1.0",
  "v1.0.0",
  "v0.184.0",
  "v0.183.0",
  "v0.182.1",
  "v0.182.0",
  "v0.181.1",
  "v0.181.0",
  "v0.180.3",
  "v0.180.2",
  "v0.180.1",
  "v0.180.0",
  "v0.179.0",
  "v0.178.0"
]

I'm not 100% sure of what API calls Renovate call, but from the logs it seems like it's this one, so maybe the update doesn't get picked up because the old version is too old?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published