From 2f81bd6be573ed4b1819c2f9662504baed8cb925 Mon Sep 17 00:00:00 2001 From: pat-s Date: Thu, 9 Apr 2026 23:21:12 +0200 Subject: [PATCH] fix: clean stale R package lock dirs before installing bincraft Parallel matrix jobs sharing /mnt/cache/R-pkgs leave stale 00LOCK-* dirs that block subsequent installs. --- .crow/build-all-versions-amd64.yaml | 1 + .crow/build-r-minor-sensitive-packages.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/.crow/build-all-versions-amd64.yaml b/.crow/build-all-versions-amd64.yaml index e97384a..f33bddc 100644 --- a/.crow/build-all-versions-amd64.yaml +++ b/.crow/build-all-versions-amd64.yaml @@ -64,6 +64,7 @@ steps: - ${ARCH}-binaries-r-dep-cache-${OS}-${OS_VERSION//./}:/mnt/cache 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 # Windows-only: 'RInno', 'KeyboardSimulator', 'R2PPT', 'RWinEdt', 'blatr', 'excel.link', 'spectrino', 'taskscheduleR', 'MDSGUI', 'BiplotGUI', 'R2wd', 'rFUSION', 'MediaNews', 'rFUSION', 'MediaNews' diff --git a/.crow/build-r-minor-sensitive-packages.yaml b/.crow/build-r-minor-sensitive-packages.yaml index bb0d050..c77e6fe 100644 --- a/.crow/build-r-minor-sensitive-packages.yaml +++ b/.crow/build-r-minor-sensitive-packages.yaml @@ -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)