turbo: ERROR yarn.lock: yaml: line 9184: could not find expected ':'
What version of Turborepo are you using?
1.0.20-canary.1 and 1.0.19
Describe the Bug
I cannot run any command.
All commands give this error:
ERROR yarn.lock: yaml: line 9184: could not find expected ':'
Expected Behavior
I can run commands
To Reproduce
Here is the lockfile entry it’s complaining about (it’s due to yarn-resolutions being used to de-dupe the dependency).
(line 9184)
ember-cli-babel@6.11.0, ember-cli-babel@7.26.10, ember-cli-babel@7.26.6, ember-cli-babel@^6.0.0, ember-cli-babel@^6.0.0-beta.4, ember-cli-babel@^6.10.0, ember-cli-babel@^6.16.0, ember-cli-babel@^6.17.0, ember-cli-babel@^6.6.0, ember-cli-babel@^6.7.2, ember-cli-babel@^6.8.1, ember-cli-babel@^6.8.2, ember-cli-babel@^6.9.0, ember-cli-babel@^7.0.0, ember-cli-babel@^7.1.0, ember-cli-babel@^7.1.2, ember-cli-babel@^7.1.3, ember-cli-babel@^7.10.0, ember-cli-babel@^7.11.1, ember-cli-babel@^7.12.0, ember-cli-babel@^7.13.0, ember-cli-babel@^7.13.2, ember-cli-babel@^7.17.2, ember-cli-babel@^7.18.0, ember-cli-babel@^7.19.0, ember-cli-babel@^7.2.0, ember-cli-babel@^7.20.0, ember-cli-babel@^7.20.5, ember-cli-babel@^7.21.0, ember-cli-babel@^7.22.1, ember-cli-babel@^7.23.0, ember-cli-babel@^7.23.1, ember-cli-babel@^7.26.10, ember-cli-babel@^7.26.2, ember-cli-babel@^7.26.3, ember-cli-babel@^7.26.5, ember-cli-babel@^7.26.6, ember-cli-babel@^7.26.8, ember-cli-babel@^7.4.0, ember-cli-babel@^7.4.1, ember-cli-babel@^7.7.0, ember-cli-babel@^7.7.3:
note that there is a colon at the end. So, idk if the parser is just giving up because the line is so long or what 🤷
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 16 (5 by maintainers)
Update
My
yarn.lockwas with theEOLchar\r\n. When I updated it o\nIt worked…Before: https://gitlab.com/viniciuspjardim/turborepo-test/-/jobs/1919408047
After: https://gitlab.com/viniciuspjardim/turborepo-test/-/jobs/1919421580
Weirdness
yarn.lockwas\r\n, all other files were\n. I created the project usingnpx create-turbo@latest\rright? Maybe I messed up with my Git config1.2.1 some problem
ERROR yarn.lock: could not unmarshal lockfile: yaml: line 9: mapping values are not allowed in this context
#948 is actually a duplicate of this but has the key detail of 1024 limit in go-yaml. As such I’m going to close this issue and we’ll track the problem over there.