-
-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yarn.cmd not found in 6.0.0 #284
Comments
Once I set: download = true Yarn started to work as expected. What am I doing wrong in the globally accessible case (download = false)? |
Which version of yarn do you have globally? This example builds fine for me on Windows
It sounds like there could be a bug with |
My recommendation would be not setting |
I don't have Yarn installed globally. I thought the plugin downloads Yarn no matter what. Hence, why would I need a global installation? usage.md states:
I'm using:
My build.gradle is next to package.json |
I uninstalled the wrong yarn, running completely without yarn this too fails for me and the bug goes basically all the way back. But right now we don't have support for yarn 2/3, will debate whether this is a major change or a patch while I have dinner and wait for the tests to pass on CI |
@cerbenus this is fixed in 7.0.0 which has now been released |
I tried 7.0.0. While I can confirm that I don't have a "yarn problem" anymore, I can tell that the .gradle/yarn folder doesn't get created anymore even though the config comment states:
|
I'm trying out the just released version 6.0.0 and when executing gradle yarn I get:
The documentation says:
The plugin never uses a locally-installed yarn because it may be deleted during yarn execution. Instead, it installs yarn into yarnWorkDir (.gradle/yarn/ by default) by the yarnSetup task and use it.
After executing yarnSetup and checking the yarnWorkDir I find a sub folder under "yarn" called "yarn-latest". The yarn.cmd is available but somewhere the referencing must be off...
I do run a Gradle multi module project and therefore use a sub folder called "frontend" from which I'm running these commands.
I have specified my yarnWorkDir as:
// The directory where yarn is installed (when a Yarn task is used) yarnWorkDir = file("${project.projectDir}/.gradle/yarn")
project.projectDir points to sub module.
The text was updated successfully, but these errors were encountered: