Open5

Git の revision を Renovate で自動 update する

- name: golang.org/x/perf/cmd/benchstat
  version: 0625e007bf107ed07ba6f0b91a95472fc542d4f5 # renovate: depName=https://go.googlesource.com/perf
{
  "regexManagers": [
    {
      "fileMatch": ["\\.?aqua\\.ya?ml"],
      "matchStrings": [
        " +['\"]?(version|ref)['\"]? *: +['\"]?(?<currentValue>[^'\" \\n]+?)['\"]? +# renovate: depName=(?<depName>[^\\n]+)",
        " +['\"]?name['\"]? *: +['\"]?(?<depName>[^'\" @/\\n]+/[^'\" @/\\n]+)(/[^'\" /@\\n]+)*@(?<currentValue>[^'\" \\n]+)['\"]?"
      ],
      "datasourceTemplate": "git-refs",
      "versioningTemplate": "git"
    }
  ]
}

上手く update 出来ない

DEBUG: Found no results from datasource that look like a version (https://go.googlesource.com/perf)(dependency="https://go.googlesource.com/perf")
{
  "result": {
    "sourceUrl": "https://go.googlesource.com/perf",
    "releases": []
  }
}

https://github.com/renovatebot/renovate/blob/2bfc667e420e43818cff0893521dd88a0e471a6e/lib/modules/datasource/go/releases-goproxy.ts#L70-L77

DEBUG: Goproxy error: trying next URL provided with GOPROXY
{
  "err": {
    "name": "HTTPError",
    "code": "ERR_NON_2XX_3XX_RESPONSE",
    "timings": {
      "start": 1654496390874,
      "socket": 1654496390874,
      "lookup": 1654496390874,
      "connect": 1654496390901,
      "secureConnect": 1654496390916,
      "upload": 1654496390916,
      "response": 1654496390934,
      "end": 1654496390934,
      "phases": {
        "wait": 0,
        "dns": 0,
        "tcp": 27,
        "tls": 15,
        "request": 0,
        "firstByte": 18,
        "download": 0,
        "total": 60
      }
    },
    "message": "Response code 410 (Gone)",
    "stack": "HTTPError: Response code 410 (Gone)\n    at Request.<anonymous> (/home/ubuntu/renovateapp/node_modules/got/dist/source/as-promise/index.js:118:42)\n    at runMicrotasks (<anonymous>)\n    at processTicksAndRejections (internal/process/task_queues.js:95:5)",
    "options": {
      "headers": {
        "user-agent": "Renovate Bot (GitHub App 2740)",
        "accept-encoding": "gzip, deflate, br"
      },
      "url": "https://proxy.golang.org/https:/go.googlesource.com/perf/@v/list",
      "hostType": "go-proxy",
      "username": "",
      "password": "",
      "method": "GET",
      "http2": false
    },
    "response": {
      "statusCode": 410,
      "statusMessage": "Gone",
      "body": "bad request: invalid escaped module path \"https:/go.googlesource.com/perf\": malformed module path \"https:/go.googlesource.com/perf\": invalid char ':'",
      "headers": {
        "access-control-allow-origin": "*",
        "content-type": "text/plain; charset=UTF-8",
        "x-content-type-options": "nosniff",
        "x-frame-options": "SAMEORIGIN",
        "x-xss-protection": "0",
        "date": "Mon, 06 Jun 2022 06:19:50 GMT",
        "content-length": "149",
        "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000,h3-Q050=\":443\"; ma=2592000,h3-Q046=\":443\"; ma=2592000,h3-Q043=\":443\"; ma=2592000,quic=\":443\"; ma=2592000; v=\"46,43\"",
        "connection": "close"
      },
      "httpVersion": "1.1"
    }
  }
}
ログインするとコメントできます