From 044254044b40b7d4993a42a6a736f97c9ae62c52 Mon Sep 17 00:00:00 2001 From: Peter Bourgon Date: Fri, 10 May 2024 06:02:48 +0200 Subject: [PATCH] examples: hash go.mod, not go.sum go.sum isn't a lock file and doesn't represent dependencies --- examples.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples.md b/examples.md index 1bcde91..c9c9af4 100644 --- a/examples.md +++ b/examples.md @@ -190,7 +190,7 @@ steps: path: | ~/.cache/go-build ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-${{ hashFiles('**/go.mod') }} restore-keys: | ${{ runner.os }}-go- ``` @@ -203,7 +203,7 @@ steps: path: | ~/Library/Caches/go-build ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-${{ hashFiles('**/go.mod') }} restore-keys: | ${{ runner.os }}-go- ``` @@ -216,7 +216,7 @@ steps: path: | ~\AppData\Local\go-build ~\go\pkg\mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + key: ${{ runner.os }}-go-${{ hashFiles('**/go.mod') }} restore-keys: | ${{ runner.os }}-go- ```