From 108ae0f6e7255561eb4cbce8d24bdd8e9dc664ad Mon Sep 17 00:00:00 2001 From: Deluan Date: Sun, 30 Aug 2026 15:49:12 -0400 Subject: [PATCH] ci: key the WASM cache on what actually changes the modules The test plugins are separate Go modules with their own go.mod and go.sum; they reach the PDK through a replace directive and never read the root module. So the root go.sum has no bearing on the wasm bytes, and the wazero version it pins is already namespaced by wazero itself, which stores entries under wazero---. Keying on it only rotated the cache on every unrelated dependency bump. Drop it, and add the go.mod files that were missing: the test plugins' own and the PDK's. The root go.mod stays, since it selects the toolchain that builds the modules. --- .github/workflows/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index a04e9e20e..ada5cc065 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -143,7 +143,7 @@ jobs: uses: actions/cache@v6 with: path: plugins/testdata/.wazero-cache - key: wazero-${{ runner.os }}-${{ hashFiles('plugins/testdata/*/*.go', 'plugins/testdata/*/go.sum', 'plugins/pdk/go/**/*.go', 'go.mod', 'go.sum') }} + key: wazero-${{ runner.os }}-${{ hashFiles('plugins/testdata/*/*.go', 'plugins/testdata/*/go.*', 'plugins/pdk/go/**/*.go', 'plugins/pdk/go/go.*', 'go.mod') }} restore-keys: wazero-${{ runner.os }}- - name: Test