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(datasource): add Hackage datasource #32944

Merged
merged 6 commits into from
Dec 13, 2024
Merged

Conversation

ysangkok
Copy link
Contributor

@ysangkok ysangkok commented Dec 6, 2024

Changes

Following the addition of PVP in #32298, this adds a datasource for fetching versions from Hackage, the Haskell package repository.

Context

The Hackage datasource will enable Renovate to determine available versions for a given package name.

See discussion on #31493.

I have improved documentation of the endpoint used:

This API is already available on deployed Hackage instances, but the documentation will be visible in the API docs only at a later time when a deployment is made.

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

I have tested this with a manager for .cabal files that I have drafted.
(which I purposefully haven't included it in this PR)
However, it should also be possible to use this functionality e.g. on Hpack
dependency listings
with a custom manager.

lib/modules/datasource/hackage/index.ts Outdated Show resolved Hide resolved
lib/modules/datasource/hackage/index.ts Outdated Show resolved Hide resolved
lib/modules/datasource/hackage/index.ts Outdated Show resolved Hide resolved
lib/modules/datasource/hackage/index.ts Outdated Show resolved Hide resolved
lib/modules/datasource/hackage/index.ts Outdated Show resolved Hide resolved
lib/modules/datasource/hackage/readme.md Outdated Show resolved Hide resolved
lib/modules/datasource/hackage/index.ts Outdated Show resolved Hide resolved
lib/modules/datasource/hackage/index.ts Outdated Show resolved Hide resolved
lib/modules/datasource/hackage/index.ts Outdated Show resolved Hide resolved
lib/modules/datasource/hackage/index.ts Outdated Show resolved Hide resolved
lib/modules/datasource/hackage/index.ts Outdated Show resolved Hide resolved
@ysangkok
Copy link
Contributor Author

OK, I have again addressed all comments

@secustor secustor enabled auto-merge December 12, 2024 21:04
@secustor secustor added this pull request to the merge queue Dec 13, 2024
Merged via the queue into renovatebot:main with commit d63ff71 Dec 13, 2024
39 checks passed
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 39.64.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

}
}

export function versionToRelease(
Copy link
Member

Choose a reason for hiding this comment

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

these functions should usually not public. they should be in a utils or common files if separate tests are needed

@ysangkok ysangkok deleted the datasource branch December 15, 2024 22:10
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.

4 participants