Skip to content

Commit 109abda

Browse files
committed
Use carton lib for tidy pre-commit hook
1 parent 19d28e9 commit 109abda

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

cpanfile

+3
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ requires 'MetaCPAN::API';
1212
requires 'MetaCPAN::API::Tiny';
1313
requires 'WWW::Mechanize::Cached';
1414
requires 'WWW::Mechanize::Cached::GZip';
15+
16+
# For the git pre-commit hook.
17+
requires 'Code::TidyAll::Git::Precommit';

git/hooks/pre-commit

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
use strict;
44
use warnings;
5+
# Hack to use carton's local::lib;
6+
use lib 'local/lib/perl5';
57

68
use Code::TidyAll::Git::Precommit;
79
Code::TidyAll::Git::Precommit->check();

0 commit comments

Comments
 (0)