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

feat(internal): datasource registryStrategy #6549

Merged
merged 5 commits into from Jun 19, 2020

Conversation

rarkins
Copy link
Collaborator

@rarkins rarkins commented Jun 19, 2020

datasource implementations can export a registryStrategy field that is used by the datasource index/controller to manage the approach:

  • ‘first’: send only the first registryUrl
  • ‘hunt’: return the first successful result
  • ‘merge’: try all registries and combined/deduplicate the results

This way they don't all need to reimplement the same logic.

Closes #6533

datasource implementations can export a `registryStrategy` field that is used by the datasource index/controller to manage the approach:
- ‘first’: send only the first registryUrl
- ‘hunt’: return the first successful result
- ‘merge’: try all registries and combined/deduplicate the results

Closes #6533
lib/datasource/common.ts Show resolved Hide resolved
lib/datasource/gitlab-tags/index.ts Show resolved Hide resolved
lib/datasource/gradle-version/index.ts Outdated Show resolved Hide resolved
lib/datasource/index.ts Show resolved Hide resolved
lib/datasource/index.ts Outdated Show resolved Hide resolved
lib/datasource/index.ts Show resolved Hide resolved
lib/datasource/index.ts Outdated Show resolved Hide resolved
lib/datasource/index.ts Show resolved Hide resolved
lib/datasource/pypi/index.ts Outdated Show resolved Hide resolved
lib/datasource/sbt-package/index.ts Show resolved Hide resolved
@rarkins rarkins requested a review from viceice June 19, 2020 14:34
lib/datasource/index.ts Outdated Show resolved Hide resolved
@rarkins rarkins requested a review from viceice June 19, 2020 17:47
@rarkins rarkins merged commit 3d8e3ad into master Jun 19, 2020
@rarkins rarkins deleted the feat/6533-datasource-registry-strategy branch June 19, 2020 19:29
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 21.13.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move registryUrls handling into datasource
3 participants