fix: clean stale R package lock dirs before installing bincraft
Some checks failed
ci/crow/manual/build-all-versions-amd64/1 Pipeline failed
ci/crow/manual/build-all-versions-amd64/2 Pipeline failed
ci/crow/manual/build-all-versions-amd64/4 Pipeline failed
ci/crow/manual/build-all-versions-amd64/3 Pipeline failed
ci/crow/manual/build-all-versions-amd64/5 Pipeline failed

Parallel matrix jobs sharing /mnt/cache/R-pkgs leave stale 00LOCK-* dirs that block subsequent installs.
This commit is contained in:
Patrick Schratz 2026-04-09 23:21:12 +02:00
commit 2f81bd6be5
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -58,6 +58,7 @@ steps:
STRATEGY: sequential
commands:
- git clone -q https://pat-s:$$REPO_RO_TOKEN@git.devxy.io/devxy/build-cran-binaries.git .
- rm -rf /mnt/cache/R-pkgs/00LOCK-*
- R -q -e 'if (!requireNamespace("remotes", quietly = TRUE)) install.packages("remotes"); remotes::install_git("https://codefloe.com/rpkgs/bincraft.git"); packageVersion("bincraft")'
- mkdir -p /mnt/cache/pkgcache /mnt/cache/R-pkgs /mnt/cache/ccache /mnt/cache/packages
- XVFB=$(command -v xwfb-run 2>/dev/null || command -v xvfb-run)