-
Notifications
You must be signed in to change notification settings - Fork 174
Support for mono-repos? #224
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
Comments
It's currently not possible, but that could be taken into account together with #196 |
I think I can unblock with some less demanding change. I notice that if we make the I created a PR with such a change. The PR is currently failing as it requires a package that I added to |
I dug into the changes linked here - up until 3973f37, but I can't figure out how to use pre-commit hooks in a monorepo 🤔 😞 My devenv & hooks are defined in a subdirectory, but Any pointers? Edit: while realizing this I'm thinking I might just be not using git-hooks.nix right - and it's not about monorepo... will report back 🙈 |
Uh oh!
There was an error while loading. Please reload this page.
Context
As a developer that works on a project inside a monorepo
I would like to inject a pre-commit hook on a subdirectory of the git repo
So that I can take advantage of the fantastic pre-commit-hooks.nix tool
Problem
When we have a
flake.nix
file with a pre-commit setup that runs theshellHook
on a sub-directory of the repository, thepre-commit-hooks.nix
tool doesn't install the pre-commit hooks. Instead, it reports:Current behavior
It seems
pre-commit-hooks.nix
assumes that theflake.nix
file and the.git
folder are in the same directory.Expected behaviour
Ideally, we can get a pre-commit-hook installation that works only on the sub-directory of the repository that contains the flake.
Is this possible?
The text was updated successfully, but these errors were encountered: