berry icon indicating copy to clipboard operation
berry copied to clipboard

[Bug] Cannot call yarn from workspace package.json on Windows

Open Tanuel opened this issue 6 years ago • 4 comments

  • [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

package.json

{
	"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"
	]
}

my-workspace/package.json

{
	"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

Tanuel avatar Mar 05 '20 13:03 Tanuel

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.

yarnbot avatar Jun 09 '20 09:06 yarnbot

Well yes, this is a windows only issue... would be kinda sad if this gets closed without getting a comment from a maintainer :(

Tanuel avatar Jun 10 '20 18:06 Tanuel

Cloned and tested your repro, I can't reproduce with master

merceyz avatar Jun 10 '20 18:06 merceyz

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.

Tanuel avatar Jun 18 '20 08:06 Tanuel