Skip to content

RPackage: include archive URL for old versions in urls attribute#4060

Open
alecbcs wants to merge 4 commits intospack:developfrom
alecbcs:fix/old-r-package-urls
Open

RPackage: include archive URL for old versions in urls attribute#4060
alecbcs wants to merge 4 commits intospack:developfrom
alecbcs:fix/old-r-package-urls

Conversation

@alecbcs
Copy link
Copy Markdown
Member

@alecbcs alecbcs commented Mar 31, 2026

This PR fixes a bug where we had previously been silently falling back to spidering urls for old versions of r-* packages since we weren't correctly modeling the archive URL. This PR swaps to setting the urls attribute on the class with both the archive url path and the latest version path.

Signed-off-by: Alec Scott <alec@llnl.gov>
Signed-off-by: Alec Scott <alec@llnl.gov>
becker33
becker33 previously approved these changes Mar 31, 2026
Signed-off-by: Alec Scott <alec@llnl.gov>
@alecbcs alecbcs force-pushed the fix/old-r-package-urls branch from abe216c to 109d6ad Compare April 1, 2026 17:43
haampie
haampie previously approved these changes Apr 1, 2026
@haampie
Copy link
Copy Markdown
Member

haampie commented Apr 1, 2026

Don't we support urls (plural) too? I don't get this part, but also haven't look at the implementation

In the case of the latest release, we fail to find the url via this method and fall back to the package class URL which will be correct.

It sounds suboptimal even if it works

Signed-off-by: Alec Scott <alec@llnl.gov>
@alecbcs
Copy link
Copy Markdown
Member Author

alecbcs commented Apr 1, 2026

I originally stayed away from using urls because a package cannot have both url and urls properties and there are some r-* packages that set a url, however since we gate populating the urls on the cran class attribute I think a package setting both a cran identifier and a custom url is reasonably expected to fail.

@alecbcs alecbcs changed the title RPackage: allow old versions of packages with url_for_version() RPackage: include archive URL for old versions in urls attribute Apr 1, 2026
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