Allowing codeberg packages to be part of an universe #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
I am following @wlandau advice (r-multiverse/help#79 (reply in thread)) on updating part of the code from here before doing similar works on R-multiverse. The goal is to allow packages from codeberg to be referenced in a "universe" and specifically in R-multiverse.
added a function
lookup_codeberg_releasethat is checking for a codeberg release, using codeber API (more here https://codeberg.org/api/swagger#/repository/repoListReleases).included this function in
get_release_versionfunctionThose nearly empty packages offer good options for testing:
A simple package with one release: https://codeberg.org/r-codeberg/test.Rmultiverse.release
A package with no release: https://codeberg.org/defuneste/test.Rmultiverse
A package with a release and a pre-release: https://codeberg.org/defuneste/pot.pourri
I changed the obvious part but I may have missed some other parts and will try to update as needed.