File tree Expand file tree Collapse file tree 3 files changed +6
-51
lines changed Expand file tree Collapse file tree 3 files changed +6
-51
lines changed Original file line number Diff line number Diff line change 1212 " id " : " shellcheck"
1313 }
1414 ],
15- " repo " : " .pre-commit-hooks" ,
15+ " repo " : " .pre-commit-hooks/ " ,
1616 " rev " : " master"
1717 }
1818 ]
Original file line number Diff line number Diff line change 179179 inherit ( import ( import ../nix/sources.nix ) . gitignore { inherit lib ; } )
180180 gitignoreSource
181181 ;
182-
183- patch =
184- pre-commit :
185- pre-commit . overrideAttrs (
186- drv :
187- {
188- patches =
189- ( drv . patches or [ ] ) ++ [
190- ../nix/pre-commit-resolve-symlink.patch
191- ] ;
192- name = "${ drv . name } -nix" ;
193- }
194- ) ;
195-
196182in {
197183 options . pre-commit =
198184 {
@@ -204,10 +190,10 @@ in {
204190 ''
205191 The pre-commit package to use.
206192 '' ;
207- default = patch pkgs . pre-commit ;
193+ default = pkgs . pre-commit ;
208194 defaultText =
209195 literalExample ''
210- patch pkgs.pre-commit
196+ pkgs.pre-commit
211197 '' ;
212198 } ;
213199
303289 repos =
304290 [
305291 {
306- repo = ".pre-commit-hooks" ;
292+ repo = ".pre-commit-hooks/ " ;
307293 rev = "master" ;
308294 hooks =
309295 mapAttrsToList ( id : _value : { inherit id ; } ) enabledHooks ;
353339
354340 if $doInstall; then
355341 pre-commit install
342+ # this is needed as the hook repo configuration is cached
343+ pre-commit clean
356344 fi
357345 fi
358346 '' ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments