From b5a91c7d07ff7055c5d79feeb0ec08f626cc260a Mon Sep 17 00:00:00 2001 From: Mike Landau Date: Fri, 25 Sep 2026 11:11:40 -0700 Subject: [PATCH] fix(ci): silence Node 20 and go cache restore warnings Pin devbox-install-action to v0.15.0 (uses actions/cache v5 instead of the Node 20 v4), and restore the golang cache before installing devbox in the golangci-lint job so the init_hook's `go install tool` doesn't pre-populate ~/go/pkg/mod and break the tar extraction. Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/workflows/cli-tests.yaml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cli-tests.yaml b/.github/workflows/cli-tests.yaml index 20786d96ea9..a983b7aa110 100644 --- a/.github/workflows/cli-tests.yaml +++ b/.github/workflows/cli-tests.yaml @@ -86,7 +86,7 @@ jobs: steps: - uses: actions/checkout@v7 - name: Install devbox - uses: jetify-com/devbox-install-action@jl/migrate-installer + uses: jetify-com/devbox-install-action@v0.15.0 with: enable-cache: true - name: Build flake @@ -106,11 +106,9 @@ jobs: steps: - uses: actions/checkout@v7 - - name: Install devbox - uses: jetify-com/devbox-install-action@jl/migrate-installer - with: - enable-cache: true - + # Must be restored before installing devbox: the install action runs our + # init_hook (`go install tool`), which populates ~/go/pkg/mod. Restoring + # the cache on top of that fails with "Cannot open: File exists". - name: Mount golang cache uses: actions/cache@v5 with: @@ -120,6 +118,11 @@ jobs: ~/go/pkg key: go-${{ runner.os }}-${{ hashFiles('go.sum') }} + - name: Install devbox + uses: jetify-com/devbox-install-action@v0.15.0 + with: + enable-cache: true + - run: devbox run lint test: @@ -192,7 +195,7 @@ jobs: brew install dash zsh fi - name: Install devbox - uses: jetify-com/devbox-install-action@jl/migrate-installer + uses: jetify-com/devbox-install-action@v0.15.0 with: enable-cache: true - name: Setup Nix GitHub authentication