-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
What version of Turborepo are you using?
1.2.9
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
When inputs is specified, the task will only rerun if it is your first change or you commit your change. If you change your file content again, the task will reuse cache and produce stale outputs.
Expected Behavior
turbo should always rerun the task if file content is changed.
To Reproduce
- Create a turborepo
npx create-turbo
- Add inputs to turbo.json
{
"pipeline": {
"build": {
"dependsOn": [
"^build"
],
"outputs": [
"dist/**",
".next/**"
],
"inputs": [
"pages/**",
"next.config.js",
"package.json",
"tsconfig.json"
]
},
"lint": {
"outputs": []
},
"dev": {
"cache": false
}
}
- Init git and commit changes.
- Change /apps/web/pages/index.tsx
- add
console.log('123')
. turbo could detect this change and rebuild - change file to
console.log('456')
. turbo couldn't detect this.
rusnyder
Metadata
Metadata
Assignees
Labels
No labels