Skip to content

Commit

Permalink
Monitor contents of Cabal files so we rerun solver upon edits (haskel…
Browse files Browse the repository at this point in the history
…l#3323, haskell#3324).

There was a comment claiming that it was done already but this function
does not exist. I think it was referring to findProjectPackages, but
this function tests only matchFileGlob (so it will notice if a.cabal is
renamed to b.cabal) and not the actual contents of the file.

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
(cherry picked from commit f9929a8)
  • Loading branch information
ezyang authored and 23Skidoo committed Apr 14, 2016
1 parent 128faaf commit af07766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cabal-install/Distribution/Client/ProjectConfig.hs
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ readSourcePackage verbosity (ProjectPackageLocalCabalFile cabalFile) =
dir = takeDirectory cabalFile

readSourcePackage verbosity (ProjectPackageLocalDirectory dir cabalFile) = do
-- no need to monitorFiles because findProjectCabalFiles did it already
monitorFiles [monitorFileHashed cabalFile]
pkgdesc <- liftIO $ readPackageDescription verbosity cabalFile
return SourcePackage {
packageInfoId = packageId pkgdesc,
Expand Down

0 comments on commit af07766

Please sign in to comment.