Skip to content

Commit 3b8531b

Browse files
Ajit Pratap SinghAjit Pratap Singh
authored andcommitted
fix: invalidate cache on each commit to force source build
- Add github.sha to cache key to ensure fresh builds per commit - Prevents using cached v1.4.0 binary that lacks semicolon support - Forces Install GoSQLX step to run and detect local repository - Ensures tests run against current PR code changes
1 parent f1169e7 commit 3b8531b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ runs:
9292
uses: actions/cache@v4
9393
with:
9494
path: ~/go/bin/gosqlx
95-
key: gosqlx-${{ inputs.gosqlx-version }}-${{ runner.os }}-${{ runner.arch }}
95+
key: gosqlx-${{ inputs.gosqlx-version }}-${{ runner.os }}-${{ runner.arch }}-${{ github.sha }}
9696

9797
- name: Install GoSQLX
9898
if: steps.cache-gosqlx.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)