This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. 13 Jul, 2018 31 commits
  2. 12 Jul, 2018 1 commit
  3. 09 Jul, 2018 5 commits
  4. 08 Jul, 2018 3 commits
    • quasicomputational's avatar
    • quasicomputational's avatar
      eb44385a
    • quasicomputational's avatar
      Make Setup.hs configure more CWD-independent. · a31ab06a
      quasicomputational authored
      Previously, we were checking the package with a hard-coded root
      directory of ".". This was not a problem before, but with #5372 we
      have started to expand globs while checking packages, which breaks if
      the CWD is not the directory containing the `.cabal` file and causes
      snowleopard/hadrian#634.
      
      Luckily, this is an easy fix: the correct directory is easy to
      determine. Writing a test and making sure it's tickling the failing
      case took longer than writing the fix!
      
      "." is hard-coded as the root directory passed to `checkPackageFiles`
      in a few other places, but those are (a) non-trivial to test, and (b)
      already in places that have other assumptions about their CWD, so I
      have simply documented the CWD requirement for those.
      a31ab06a