Comments (17)
Also run into this issue, in my case, change the yarn.lock file from CRLF
to LF
fixes the problem.
from turbo.
running into this in a dockerfile
from turbo.
This is still a problem, just hit it today and was not able to find a solution. Ended up removing turbo prune
from my Dockerfile as it didn't work.
Can this issue be reopened?
from turbo.
Thanks for the write up. Investigating
from turbo.
@Floffah will give it a shot
from turbo.
Reproducible steps for turborepo
-repository:
brew install dos2unix
unix2dos yarn.lock
yarn build
Runing yarn build
now gives the following response on maCOS:
❯ yarn build
yarn run v1.22.17
$ ./turbow.sh run build --scope=docs
unmarshal
ERROR yarn.lock: yaml: line 6: mapping values are not allowed in this context
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
from turbo.
yarn -O install
from turbo.
@Yuyz0112 is the fix here as simple as add \r\n
in lockfile parsing?
from turbo.
@Yuyz0112 is the fix here as simple as add
\r\n
in lockfile parsing?
if you push a version (even just as a commit not a publish) i could try it and see if it fixes my problem because its likely the same
from turbo.
Looks like the CRLF
has a ^M
after each line, so it breaks the first YAML field. I'm using vscode's toolbar to convert CRLF
to LF
.
from turbo.
@Floffah I am trying to assist in solve this problem. Do I understand you correctly that the problem is reproducible in your earlier mentioned repo? https://github.com/floffah/collaborated
from turbo.
@Floffah I am trying to assist in solve this problem. Do I understand you correctly that the problem is reproducible in your earlier mentioned repo? https://github.com/floffah/collaborated
Yes, the vercel deployments have failed with it for the past few commits
The problem may be to do with crlf in development being deployed to a lf based platform with the same crlf lock file
from turbo.
@Floffah I have been able to reproduce it locally, I am getting the following:
❯ yarn build:simple
yarn run v1.22.17
$ yarn turbo run build --only
$ /Users/weyert/Development/Projects/Opensource/turborepo/repros/collaborated/node_modules/.bin/turbo run build --only
unmarshal
ERROR yarn.lock: yaml: line 6: mapping values are not allowed in this context
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Working on a fix now :)
from turbo.
What is the suggested workaround here?
from turbo.
I was able to get it mostly working by switching to #13#10 for splitting lines but then I went down a rabbit hole of using Scanner instead. And then I got stuck on which data you exactly need from the lock file for the tool
from turbo.
Running into the same issue. Our original yarn.lock file is generated by yarn version 3.2.1, but when creating a prune of one of the packages, the resulting lock file is version 1.
Original file:
# This file is generated by running "yarn install" inside your project.
# Manual changes might be lost - proceed with caution!
__metadata:
version: 6
cacheKey: 8
by prune:
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
...
yarn fails
$ yarn
Syntax Error: Expected "\n", "\r", or "\r\n" but ":" found.
Steps taken:
yarn --version
# 3.2.1
npx turbo prune --scope=@some/package
cd out
yarn install # fails
from turbo.
Berry (Yarn 3) support is "best effort" at this time. Watch for PRs from @chris-olszewski.
from turbo.
Related Issues (20)
- Docs: How to initial install all modules in all packages in the workspace? HOT 8
- Regression with 1.13.1 when filtering between two branches HOT 4
- Docs: bun package manager HOT 1
- "turbo run dev" gets stuck at a random stage HOT 3
- FatalError: error TS6053: File '@repo/typescript-config/nextjs.json' not found. HOT 2
- Turbo not working on windows HOT 7
- Docs: OpenAPI spec incorrectly mentions teamId instead of slug HOT 5
- pnpm 9 lockfile support HOT 12
- Watch mode show limited error message for 'invalid task configuration' HOT 14
- Docs: When the API references will be added? HOT 1
- ERROR Cannot invoke 'uname` to get architecture type: Os { code: 11, kind: WouldBlock, message: "Resource temporarily unavailable" } HOT 5
- Error when using ssh2 package: Module parse failed: Unexpected character '�' (1:0) HOT 1
- Docs: no-unused-vars occurs on function type argument, in basic example
- Wrong react-internal ESLint config for Basic Next.js example
- Tasks should run `dependsOn` before hashing inputs HOT 2
- Feature Request: Turbopack Plugins HOT 1
- Docs: `dependsOn` is easy to use incorrectly and have tasks run out of order HOT 2
- Minor: turbo/examples /with-svelte/ - Remove deprecated prettierrc option: pluginSearchDirs HOT 1
- Turborepo panics when Ctrl-Cing HOT 2
- Turbo runs fewer tasks than it should and reports questionable summaries HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from turbo.