Skip to content

Commit bd26e03

Browse files
committed
Make git a test dependency of hlibgit2.
This is based on the change in jgm/zip-archive#22 which was solving a similar issue. If you want, I'm happy to apply this change to gitlib-cmdline as well.
1 parent 2037dc9 commit bd26e03

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

hlibgit2/Setup.hs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
import Distribution.Simple
2-
main = defaultMain
1+
import Distribution.Simple
2+
import Distribution.Simple.Program
3+
4+
main :: IO ()
5+
main = defaultMainWithHooks simpleUserHooks
6+
{ hookedPrograms = [ simpleProgram "git" ]}

hlibgit2/hlibgit2.cabal

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ License-file: LICENSE
66
License: MIT
77
Author: John Wiegley, Sakari Jokinen, Jacob Stanleyyeah,
88
Maintainer: [email protected]
9-
Build-Type: Simple
9+
Build-Type: Custom
1010
Cabal-Version: >=1.10
1111
Category: FFI
1212

@@ -37,6 +37,8 @@ Test-suite smoke
3737
base >=3
3838
, hlibgit2
3939
, process
40+
build-tools:
41+
git
4042

4143
Library
4244
hs-source-dirs: .

0 commit comments

Comments
 (0)