r-lib / remotes

Install R packages from GitHub, GitLab, Bitbucket, git, svn repositories, URLs
https://remotes.r-lib.org/
Other
325 stars 152 forks source link

Syntax for the latest tag? #786

Closed wlandau closed 4 months ago

wlandau commented 4 months ago

This is a continuation from https://github.com/r-lib/remotes/issues/200#issuecomment-1981805193. I am posting here because I realized "*release" only applies to GitHub.

Would it be possible for the ref parameter to support syntax for the latest Git tag, whether the repo is hosted on GitHub, GitLab, Bitbucket, etc.? This would make it much easier to create tag-based package repositories on R-universe (if I correctly understand @jeroen's advice from https://github.com/r-universe-org/help/issues/378).

@shikokuchuo, @llrs and I are working on R-releases, a new project that began in the R Consortium Repositories Working Group. We have lofty ambitions to curate Git releases across the entire R package ecosystem in one central R-universe, but we are finding that many maintainers create Git tags without GitHub releases, and that makes things difficult for us.

wlandau commented 4 months ago

I'm not actually sure how feasible tags are for the purposes of R-releases, c.f. https://github.com/r-releases/help/issues/26#issuecomment-1983532980.

wlandau commented 4 months ago

In R-releases, if we do decide to continue to track releases, then https://github.com/r-lib/remotes/issues/570 would help a lot.

wlandau commented 4 months ago

The possibility of tags in non-default branches makes the concept of a "latest" tag tricky and even misleading if we are trying to get a release (c.f. https://github.com/r-releases/help/issues/26#issuecomment-1983685871). So I no longer think a "latest tag" syntax would add value.