Skip to content

Commit a34e42c

Browse files
committed
fix(ci): hash Bun patch contents into every turbo task
1 parent 3243c36 commit a34e42c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎turbo.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
// invalidate the cache.
1919
"cacheMaxAge": "7d",
2020
"cacheMaxSize": "40GB",
21+
// Bun applies `patches/*` to installed dependencies, but `bun.lock` records only each patch's
22+
// path, so editing a patch leaves every task hash unchanged and replays a build of the
23+
// unpatched dependency. Hash the patch contents into every task.
24+
"globalDependencies": ["patches/**"],
2125
"tasks": {
2226
"ci:runtime": {
2327
"dependsOn": ["^ci:runtime"],

0 commit comments

Comments
 (0)