Skip to content

$TURBO_DEFAULT$ doesn't work as default anymore in 1.13.3 #8203

@ChurroC

Description

@ChurroC

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

https://codesandbox.io/p/github/ChurroC/next-server-theme/main?import=true

What package manager are you using / does the bug impact?

npm, Yarn v1, bun

What operating system are you using?

WSL but also tested on code sandbox

Which canary version will you have in your reproduction?

Tried on 1.13.4-canary.5 and on stable 1.13.3

Describe the Bug

When adding $TURBO_DEFAULT$ to inputs, turbo doesn't recognize it and instead caches no matter the change. Cache revalidation worked perfectly without $TURBO_DEFAULT$. But the second I used it as an input it served the cached run no matter what.

Expected Behavior

$TURBO_DEFAULT$ should work the same as the default inputs and even more important should invalidate the cache when files change.

To Reproduce

You can use the repo and first do yarn install.
Then do yarn run build --filter web. This will run build step of web package. It'll work find with no input section.
If you add "inputs": ["$TURBO_DEFAULT$" to build you end up having no cache invalidation.

Additional context

Video of me testing on the code sandbox https://drive.google.com/file/d/1g9YsqGOQMxoyC8y0myBaiaegbwm5EOYX/view
turbo json - next-server-theme - CodeSandbox (1)

Also tested on 1.13.0 and everything started working

Metadata

Metadata

Labels

kind: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions