Remix.run Logo
mm263 5 hours ago

Please look at the example that is literally on the front page of the lefthook website: https://lefthook.dev/

aniforprez 4 hours ago | parent [-]

Ah ok the home page actually reminded me what the actual issue was. It can pass the list of staged files to the command but since it doesn't actually stash anything, it's not compatible with commands that don't accept a list of files. golangci-lint for example doesn't accept a list of files like this and will run on every single file in the repo. I don't know if this behaviour has changed in lefthook or golangci-lint now.