Skip to content

Commit 0c649f7

Browse files
fix: provide a prefix to GitHub Action cache (#1280)
Adds a `"wireit-"` prefix to GitHub Actions cache keys so that they can be identified more easily
1 parent ada8bf4 commit 0c649f7

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic
77
Versioning](https://semver.org/spec/v2.0.0.html).
88

9-
<!-- ## Unreleased -->
9+
## Unreleased
10+
11+
### Changed
12+
13+
- Added `"wireit-"` prefix to GitHub Actions cache keys so that they can be identified more easily.
1014

1115
## [0.14.10] - 2025-01-28
1216

src/caching/github-actions-cache.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,9 +485,9 @@ export class GitHubActionsCache implements Cache {
485485
}
486486

487487
#computeCacheKey(script: ScriptReference): string {
488-
return createHash('sha256')
488+
return `wireit-${createHash('sha256')
489489
.update(scriptReferenceToString(script))
490-
.digest('hex');
490+
.digest('hex')}`;
491491
}
492492

493493
#computeVersion(fingerprint: Fingerprint): string {

0 commit comments

Comments
 (0)