[Bug?]: Yarn crashes in pre-commit hook when comitting via Visual Studio GUI #4095
Closed
1 task done
Labels
bug
Something isn't working
Self-service
Describe the bug
We have a pre-commit hook that uses Yarn to run a script. It works fine for everyone except my coworker who wants to commit from the Visual Studio GUI.
It appears that the Yarn executable is looking for
yarn.js
in the wrong location. I took a look at theyarn
shell script (AppData\Roaming\npm\node_modules\yarn\bin\yarn
), and it looks like there is some semi-complex logic for determining the correct directory. I am wondering if this logic is not working correctly in this case.To reproduce
https://github.com/srmagura/yarn-visual-studio-repro
Expected behavior: The commit goes through.
Actual behavior: There is an error.
Environment
Additional context
Let me know if this is not a Yarn issue but rather a Visual Studio issue.
The text was updated successfully, but these errors were encountered: