Skip to content

Change file mode for execute husky hook on MacOS - #4695

Merged
Alex Ross (alexr00) merged 1 commit into
microsoft:mainfrom
Balastrong:fix/husky-exec
Apr 14, 2023
Merged

Change file mode for execute husky hook on MacOS#4695
Alex Ross (alexr00) merged 1 commit into
microsoft:mainfrom
Balastrong:fix/husky-exec

Conversation

@Balastrong

Copy link
Copy Markdown
Contributor

This issue fixes #4662

I'm on MacOS Ventura 13.2.1 and the husky hook is not executed, probably due to a wrong file mode.

$ ls -l .husky/pre-commit
-rw-r--r--  1 leonardo  staff  69 Mar 31 18:53 .husky/pre-commit
$ chmod ug+x .husky/*                         
$ ls -l .husky/pre-commit
-rwxr-xr--  1 leonardo  staff  69 Mar 31 18:53 .husky/pre-commit

Now that I have added the x permission I see the hook is properly executed.

@alexr00 Alex Ross (alexr00) added this to the April 2023 milestone Apr 11, 2023
@alexr00
Alex Ross (alexr00) enabled auto-merge (squash) April 14, 2023 14:00
@alexr00

Copy link
Copy Markdown
Member

Thanks for the PR!

@alexr00
Alex Ross (alexr00) merged commit b2e86df into microsoft:main Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Husky hooks are not executed

3 participants