Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ahippler
Copy link
Contributor

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
  • No documentation update is required

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

I have verified these changes via:

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

@ahippler ahippler force-pushed the feature/go-abortOnError branch 2 times, most recently from ce617ad to cfbacf0 Compare June 24, 2024 18:22
@viceice viceice changed the title fix: support go with abortOnError fix(datasource/go): support go proxy with abortOnError Jun 24, 2024
.reply(
200,
codeBlock`
it.each([true, false])(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use string template syntax

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe its better readable with multiple columns but you loose the type support

.reply(
200,
codeBlock`
it.each([true, false])(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants