Skip to content
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

Investigate VS Code Git Tools & Pre-commit #516

Open
charlespierce opened this issue Aug 5, 2019 · 1 comment
Open

Investigate VS Code Git Tools & Pre-commit #516

charlespierce opened this issue Aug 5, 2019 · 1 comment

Comments

@charlespierce
Copy link
Contributor

charlespierce commented Aug 5, 2019

If your project has a pre-commit hook that calls a Node command, and you use VS Code Git Tools to initiate a commit, Volta appears to be finding the default Node instead of the Node specified in package.json.

A possible cause of this is VS Code is somehow executing the Git commit with a cwd that is outside of the project, causing Volta to start in the wrong directory and not find the project-local settings. If possible, we should correctly handle this case, or worst provide some guidance for how to set up VS Code to get the expected behavior.

@vesamet
Copy link

vesamet commented May 4, 2021

I'm also having this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants