Skip to content

Commit

Permalink
Switch RSPM to use focal, not bionic
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Jun 22, 2022
1 parent 52ef930 commit 5e95707
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions repo2docker/buildpacks/r.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def get_rspm_snapshot_url(self, snapshot_date, max_days_prior=7):
# Construct a snapshot URL that will give us binary packages for Ubuntu Bionic (18.04)
if "upsi" in snapshots:
return (
"https://packagemanager.rstudio.com/all/__linux__/bionic/"
"https://packagemanager.rstudio.com/all/__linux__/focal/"
+ snapshots["upsi"]
)
raise ValueError(
Expand Down Expand Up @@ -243,7 +243,7 @@ def get_devtools_snapshot_url(self):
# Hardcoded rather than dynamically determined from a date to avoid extra API calls
# Plus, we can always use packagemanager.rstudio.com here as we always install the
# necessary apt packages.
return "https://packagemanager.rstudio.com/all/__linux__/bionic/2022-01-04+Y3JhbiwyOjQ1MjYyMTU7NzlBRkJEMzg"
return "https://packagemanager.rstudio.com/all/__linux__/focal/2022-06-03+Y3JhbiwyOjQ1MjYyMTU7RkM5ODcwN0M"

def get_build_scripts(self):
"""
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_r.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def test_snapshot_rspm_date():
for requested, expected in test_dates.items():
snapshot_url = r.get_rspm_snapshot_url(requested)
assert snapshot_url.startswith(
"https://packagemanager.rstudio.com/all/__linux__/bionic/"
"https://packagemanager.rstudio.com/all/__linux__/focal/"
+ expected.strftime("%Y-%m-%d")
)

Expand Down

0 comments on commit 5e95707

Please sign in to comment.