Skip to content

Commit

Permalink
resolve unrecognized x.y r versions to x.y.0
Browse files Browse the repository at this point in the history
R.deb download step requires a full x.y.z version, it will 404 on `r-4.4`
  • Loading branch information
minrk committed Jan 30, 2025
1 parent b960464 commit 3152c0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repo2docker/buildpacks/r.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ def r_version(self):
# available. Users can however explicitly specify the full version to get something specific
if r_version in version_map:
r_version = version_map[r_version]
elif len(r_version.split(".")) == 1:
# must have x.y.z version, add .0 for unrecognized (future) R versions
r_version += ".0"

# translate to the full version string
self._r_version = r_version
Expand Down

0 comments on commit 3152c0c

Please sign in to comment.