remove stale pak cache

This commit is contained in:
Patrick Schratz 2024-09-09 23:14:13 +02:00
commit c1a364cfe7
Signed by: pat-s
GPG key ID: 3C6318841EF78925
2 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -45,6 +45,9 @@ steps:
# download latest package version (avoid having to rebuild image every time)
- git clone https://pat-s:$$git_ro_token@git.devxy.io/devxy/r-pkg-binaries.git .
- rm -rf /mnt/cache/R-pkgs/00LOCK-r-pkg-binaries /mnt/cache/R-pkgs/00LOCK-bincraftR /opt/R/*/lib/R/library/RPostgres /mnt/cache/R-pkgs/00LOCK-RPostgres
# for some reason paks pkgcache is often corrupt
- rm -rf /mnt/cache/R-pkgs/pkgcache/ /mnt/cache/pkgcache/ /root/.cache/R/
- R -q -e 'pak::meta_update()'
- rm -rf /mnt/cache/R-pkgs/RPostgres /mnt/cache/pkgcache/R/pkgcache
- R -q -e 'install.packages("RPostgres", repos = structure(c(devxy = "https://cran.devxy.io/${ARCH}/${PKGS_ID}/latest", CRAN = "https://cloud.r-project.org")))'
- R CMD INSTALL .