-
Notifications
You must be signed in to change notification settings - Fork 395
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
BLT git hooks symlinks are broken outside the VM #2633
Comments
Thank you! |
Hey @grasmash. I updated to 9.0.4 and the
|
Hm. We're using a stock Symfony filesystem method the determine the location: 741cfbf#diff-82f049ca6fb91a65494ab7f81bdb45b0R223 Not sure why that wouldn't work. Perhaps the path passed to makePathRelative() should not include the filename suffix. Seems like we need to update https://github.com/acquia/blt/blob/9.x/tests/phpunit/BltProject/SetupGitHooksTest.php#L19 to follow the symlink and ensure that the source file exists, then work backwards from there. |
My system information:
Output of
blt doctor
:When I run this command (from outside the VM):
I get the following output (a successful commit, but no pre-commit checks or commit message validation):
And I expected this to happen:
Git to complain about my improperly formatted commit message as defined in .git/hooks/commit-msg (a symlink to /var/www/mfgov-d8/vendor/acquia/blt/scripts/git-hooks/commit-msg). Obviously this symlink is bad/incorrect outside the VM.
Does BLT recommend that even git commits be performed inside the VM?
Could the BLT Robo task which creates the symlink make it a relative one, so it will work inside and outside the VM?
The text was updated successfully, but these errors were encountered: