turbo
94c3edd1 - feat: Avoid panic from lockfile issues (#2163)

Commit
3 years ago
feat: Avoid panic from lockfile issues (#2163) * bail during prune if there's no lockfile * no longer hard error if unable to parse lockfile ``` olszewski@chriss-mbp pnpm-patch % turbo_dev build --filter=docs WARNING Issues occurred when constructing package graph. Turbo will function, but some features may not be available: 1 error occurred: * could not unmarshal lockfile: : yaml: line 2: did not find expected ',' or '}' • Packages in scope: docs • Running build in 1 packages INFO • Remote caching disabled docs:build: cache miss, executing 9689a6319a885c5d docs:build: docs:build: > docs@0.0.0 build /private/tmp/pnpm-patch/apps/docs docs:build: > next build docs:build: docs:build: info - Linting and checking validity of types... docs:build: info - Creating an optimized production build... docs:build: info - Compiled successfully docs:build: info - Collecting page data... docs:build: info - Generating static pages (0/3) docs:build: info - Generating static pages (3/3) docs:build: info - Finalizing page optimization... docs:build: docs:build: Route (pages) Size First Load JS docs:build: ┌ ○ / 632 B 77.8 kB docs:build: └ ○ /404 195 B 77.3 kB docs:build: + First Load JS shared by all 77.1 kB docs:build: ├ chunks/framework-3306dfb85e07225c.js 43 kB docs:build: ├ chunks/main-eee301a3cd4ea15f.js 33.2 kB docs:build: ├ chunks/pages/_app-5d76105b8238fa9a.js 200 B docs:build: └ chunks/webpack-fd82975a6094609f.js 727 B docs:build: docs:build: ○ (Static) automatically rendered as static HTML (uses no initial props) docs:build: Tasks: 1 successful, 1 total Cached: 0 cached, 1 total Time: 3.891s olszewski@chriss-mbp pnpm-patch % turbo_dev prune --scope=docs ERROR could not construct graph: 1 error occurred: * could not unmarshal lockfile: : yaml: line 2: did not find expected ',' or '}' ``` * Allow errors from Lockfile.ResolvePackage
Parents
Loading