Closed jakeleventhal closed 5 months ago
Are you using the inputs
key for the task? Note that, unless you add $TURBO_DEFAULT$
, .gitignore
will not be taken into account as usual for your inputs.
https://turbo.build/repo/docs/reference/configuration#inputs
If that isn't the case, we'll need a reproduction to investigate.
This is how the tsc
task is defined:
"tsc": {
"dependsOn": ["//#package-deps", "^tsc"],
"inputs": [
"!.next/**",
"!.vercel/**",
"!coverage/**",
"!dist/**",
"!out/**",
"!next-env.d.ts",
"!node_modules/**",
"!localDBData/**",
"!uploadedFiles/**",
"**/*.js",
"**/*.jsx",
"**/*.ts",
"**/*.tsx",
"tsconfig*.json"
],
"outputMode": "new-only",
"outputs": ["dist/**"]
}
Please let me know if this appears to be a failure in usage, or if I should create a minimal repro
@anthonyshew it seems this issue is resolved if I remove inputs
altogether, and that may be the right approach for me. But it isn't clear to me why the "!" wildcard for "dist" was ignored
@anthonyshew using your approach with "$TURBO_DEFAULT$" seems to not work when adding excludes. it seems to just ignore the !
.
"inputs": ["$TURBO_DEFAULT$", "!**/*.svg"]
I am seeing the inputs being used are now including all svg files, including from gitignored directories. i believe this may be its own bug
I've just verified this bug with create-turbo
on 1.13.4-canary.2
. It looks like negative globs are not being accounted for.
If I use --no-daemon
, the inputs
appear to be respected correctly.
Verify canary release
Link to code that reproduces this issue
n/a
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.4-canary.1
Describe the Bug
Input globs are including inputs that ought to be ignored.
This is one of my tasks (output from
--summarize
). As you can see, the inputs wildcard should be ignoring!dist/**
; however, the following are showing up as task inputs:Same goes for my
node_modules
filesExpected Behavior
Ignore wildcards work
To Reproduce
See text
Additional context
No response