You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing the build task that depends on the build-config-file task, the build task incorrectly receives a cache hit, even though the build-config-file task has dynamically generated a new and different config.json. This results in the build task using an outdated configuration, ignoring the changes made by the build-config-file task.
The issue appears to be caused by Turbo's inability to cache changes in .gitignore files.
Expected Behavior
The expected behavior is that the dependent task gets a cache miss whenever the upstream task generates a new config.json, even if this file is listed in .gitignore.
To Reproduce
pnpm install
pnpm exec turbo build
config.json is first created by build-config-file
rm ./apps/app-1/config.json
simulate the repo's initial state
pnpm exec turbo build
config.json recreated and has different file contents
turbo repo shows first config.json's contents even though config.json is listed in inputs & has changed.
this should be a cache miss.
Additional context
For now, I removed build-config-file from my build task dependencies, so that I can run the tasks individually & the caching is working as expected.
Verify canary release
Link to code that reproduces this issue
https://github.com/bryansoftdev/turbo-gitignore-issue
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Which canary version will you have in your reproduction?
1.13.0
Describe the Bug
When executing the build task that depends on the build-config-file task, the build task incorrectly receives a cache hit, even though the build-config-file task has dynamically generated a new and different config.json. This results in the build task using an outdated configuration, ignoring the changes made by the build-config-file task.
The issue appears to be caused by Turbo's inability to cache changes in .gitignore files.
Expected Behavior
The expected behavior is that the dependent task gets a cache miss whenever the upstream task generates a new config.json, even if this file is listed in .gitignore.
To Reproduce
pnpm install
pnpm exec turbo build
rm ./apps/app-1/config.json
pnpm exec turbo build
this should be a cache miss.
Additional context
For now, I removed build-config-file from my build task dependencies, so that I can run the tasks individually & the caching is working as expected.
The text was updated successfully, but these errors were encountered: