From 71b7ed6443a7a5e6a49531f924b78b7bd160a8e6 Mon Sep 17 00:00:00 2001 From: Chandarith Chea <45872539+chandarith-chea@users.noreply.github.com> Date: Sat, 14 Nov 2026 12:28:46 +0700 Subject: [PATCH] CI: keep the Go module cache writable so the runner can restore it Dockiva Engine (<= 0.6.10) refuses root's mkdir inside a read-only directory. Go makes module cache directories read-only, and tar, run as root, creates them with that mode before their contents, so restoring the cache on the Dockiva runner dropped 16,827 entries and every build since the cache was first saved (2026-11-13) failed on missing files. GOFLAGS=-modcacherw leaves the directories writable. The cache saved with read-only directories has to be deleted once, since its key does not change. --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5ba9637..06668ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,13 @@ jobs: # Self-hosted Dockiva runner (scripts/ci-runner/README.md); fork PRs and # the CI_RUNNER=hosted fallback use GitHub-hosted ubuntu-24.04. runs-on: ${{ (github.event.pull_request.head.repo.fork || vars.CI_RUNNER == 'hosted') && 'ubuntu-24.04' || 'dockiva' }} + env: + # ponytail: Dockiva Engine (<= 0.6.10) refuses root's mkdir inside a + # read-only directory, so tar cannot restore a module cache saved with + # Go's default read-only directories, and the build then fails on the + # missing files. Keep the directories writable; drop this once the + # engine lets root write there, as Linux does. + GOFLAGS: -modcacherw steps: - uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 with: