[Bug] Cannot call yarn from workspace package.json on Windows
- [x] I'd be willing to implement a fix (if i can figure out how and find the time, assistance appreciated)
Describe the bug
So this is kind of hard to explain, so i created a test repository.
To Reproduce
https://github.com/Tanuel/yarn-2-bug-test
I don't know how to do this via Sherlock
{
"private": true,
"scripts": {
"test-direct": "echo test success in root package",
"test-proxy": "yarn test-direct",
"test-ws-direct": "yarn workspace my-workspace run ws-test-direct",
"test-ws-proxy": "yarn workspace my-workspace run ws-test-proxy"
},
"workspaces": [
"my-workspace"
]
}
{
"version": "0.0.0",
"name": "my-workspace",
"scripts": {
"ws-test-direct": "echo ws-test success in my-workspace",
"ws-test-proxy": "yarn ws-test-direct"
}
}
Screenshots
Not a screenshot, but this is the result:
yarn test-ws-proxy
-> command not found: yarn
Environment if relevant (please complete the following information):
- OS: Windows 10
- Node version: Current LTS (12.16.1)
- Yarn version: 2.0.0-rc29
This bug does not happen on Ubuntu and MacOS
Hi! 👋
This issue looks stale, and doesn't feature the reproducible label - which implies that you didn't provide a working reproduction using Sherlock. As a result, it'll be closed in a few days unless a maintainer explicitly vouches for it or you edit your first post to include a formal reproduction (you can use the playground for that).
Note that we require Sherlock reproductions for long-lived issues (rather than standalone git repositories or similar) because we're a small team. Sherlock gives us the ability to check which bugs are still affecting the master branch at any given point, and decreases the amount of code we need to run on our own machines (thus leading to faster bug resolution faster). It helps us help you! 😃
If you absolutely cannot reproduce a bug on Sherlock (for example because it's a Windows-only issue), a maintainer will have to manually add the upholded label.
Well yes, this is a windows only issue... would be kinda sad if this gets closed without getting a comment from a maintainer :(
Cloned and tested your repro, I can't reproduce with master
Cloned and tested your repro, I can't reproduce with master
Hello, thanks for your reply. I have updated the yarn version in the test repo to the latest release (rc-36) and the bug is no longer present. Sorry for that, i should have tested it again.