renovate icon indicating copy to clipboard operation
renovate copied to clipboard

fix(datasource/go): support go proxy with abortOnError

Open ahippler opened this issue 8 months ago • 0 comments

Changes

Do not fail goproxy version lookup with abortOnError: true.

Context

The goproxy registry api only support listing versions per major version. Renovate tries to fetch the versions for the next major versions to be able to detect major version updated. This is repeated until the major version does not exist and the last requests fails with a 404. With abortOnError enabled the whole lookup throws an error for the last request. The logic to ignore the error does not handle the wrapper error.

Documentation (please check one with an [x])

  • [ ] I have updated the documentation, or
  • [x] No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • [ ] Code inspection only, or
  • [x] Newly added/modified unit tests, or
  • [ ] No unit tests but ran on a real repository, or
  • [x] Both unit tests + ran on a real repository

ahippler avatar Jun 24 '24 17:06 ahippler