You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
I can't execute any of the command using lefthook. I've tried several different commands(such as go fmt, go vet, gocritic) and the error message is always the same.
EXECUTE > lint
fork/exec /bin/sh: operation not permitted
-rwxr-xr-x 1 northicewind mbp 5211280 Nov 19 09:10 .direnv/go/bin/golint
In this particular case, I've used lefthook installed into local environment. Installing it in the global env ~/go makes no difference.
Golang is working, tools are working, golint is also works fine if invoked directly. I've checked MacOS attributes and none of the files in the project have quarantine attribute.
> xargs -l .direnv/go/bin/golint
>
Operation system is MacOS 10.15.4. Golang version go version go1.15.4 darwin/amd64
Meanwhile custom scripts with bash runner works fine
Hi.
I can't execute any of the command using lefthook. I've tried several different commands(such as
go fmt
,go vet
,gocritic
) and the error message is always the same.EXECUTE > lint fork/exec /bin/sh: operation not permitted
Configuration file is pretty simple
All permissions on executables seems to be fine.
In this particular case, I've used lefthook installed into local environment. Installing it in the global env
~/go
makes no difference.Golang is working, tools are working, golint is also works fine if invoked directly. I've checked MacOS attributes and none of the files in the project have quarantine attribute.
Operation system is MacOS 10.15.4. Golang version
go version go1.15.4 darwin/amd64
Meanwhile custom scripts with bash runner works fine
The script gets executed with no issues.
Could you please point me what is wrong?
Thanks.
UPDATE
Turns out, that lefthook is broken only if installed using
go get
. It appears to work fine if installed usinghomebrew
.The text was updated successfully, but these errors were encountered: