diff --git a/git-annex.cabal b/git-annex.cabal index b662fe482e..b610cdf65c 100644 --- a/git-annex.cabal +++ b/git-annex.cabal @@ -333,12 +333,14 @@ Executable git-annex P2P.Http.State if flag(OsPath) - Build-Depends: - os-string (>= 2.0.0), - directory (>= 1.3.8.3), - filepath (>= 1.5.2.0), - file-io (>= 0.1.3) - CPP-Options: -DWITH_OSPATH + -- Currently this build flag does not pass the test suite on Windows + if (! os(windows)) + Build-Depends: + os-string (>= 2.0.0), + directory (>= 1.3.8.3), + filepath (>= 1.5.2.0), + file-io (>= 0.1.3) + CPP-Options: -DWITH_OSPATH if (os(windows)) Build-Depends: