Skip to content

Commit

Permalink
Merge pull request #2362 from judah/master
Browse files Browse the repository at this point in the history
Let extra-source-files mark a package as dirty (#1891, #2040).
  • Loading branch information
borsboom authored Jul 10, 2016
2 parents 0643f90 + 29cd9e8 commit 919f0b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ Bug fixes:
checked for dirtiness. See
[#1982](https://github.com/commercialhaskell/stack/issues/1982)
* Signing: always use `--with-fingerprints`
[#2110](https://github.com/commercialhaskell/stack/issues/2110).
* Now consider a package to be dirty when an extra-source-file is changed.
See [#2040](https://github.com/commercialhaskell/stack/issues/2040).

## 1.1.0

Expand Down
4 changes: 3 additions & 1 deletion src/Stack/Package.hs
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,9 @@ packageDescModulesAndFiles pkg = do
(mapM
(asModuleAndFileMap benchComponent benchmarkFiles)
(benchmarks pkg))
(dfiles) <- resolveGlobFiles (map (dataDir pkg FilePath.</>) (dataFiles pkg))
(dfiles) <- resolveGlobFiles
(extraSrcFiles pkg
++ map (dataDir pkg FilePath.</>) (dataFiles pkg))
let modules = libraryMods <> executableMods <> testMods <> benchModules
files =
libDotCabalFiles <> exeDotCabalFiles <> testDotCabalFiles <>
Expand Down

0 comments on commit 919f0b2

Please sign in to comment.