https://github.com/breadadams/turborepo-framework-inference-bug
https://github.com/breadadams/turborepo-framework-inference-bug
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/breadadams/turborepo-framework-inference-bug
- Owner: breadadams
- Created: 2025-09-04T16:12:30.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-04T16:29:40.000Z (10 months ago)
- Last Synced: 2025-09-14T10:45:45.118Z (10 months ago)
- Homepage: https://github.com/vercel/turborepo/issues/10826
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Turborepo framework inference bug
This repro exhibits a problem in Turborepo (currently `v2.5.6`) regarding framework inference, for the following issue: https://github.com/vercel/turborepo/issues/10826
## Steps to reproduce
1. Perform regular setup, i.e. `npm i` + install Turbo globally.
2. Run `turbo build` to create base cache entries.
3. ❌ Run `VITE_FOO=1 turbo build`, and see that `pkg-a` and `app-a` are **cache misses**.
4. ❌ Run `VITE_FOO=2 turbo build`, and as above, `pkg-a` and `app-a` are **cache misses**.
5. ✅ Run `VITE_FOO=3 turbo build --framework-inference=false`, `pkg-a` and `app-a` are **cache misses**.
6. ✅ Run `VITE_FOO=4 turbo build --framework-inference=false`, `pkg-a` and `app-a` are **cache hits** (full turbo).
7. ✅ Run `VITE_FOO=5 turbo build --framework-inference=false`, `pkg-a` and `app-a` are **cache hits** (full turbo).
## What is expected
1. Perform regular setup, i.e. `npm i` + install Turbo globally.
2. Run `turbo build` to create base cache entries.
3. Run `VITE_FOO=1 turbo build`, and see that `pkg-a` and `app-a` are **cache hits** (full turbo).