Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With latest --git version, neither --force-dirty nor --coverage rebuilds anything. #3306

Open
rlpowell opened this issue Aug 2, 2017 · 1 comment
Milestone

Comments

@rlpowell
Copy link

rlpowell commented Aug 2, 2017

Steps to reproduce

My yaml file is at https://gist.github.com/anonymous/bc558eb672c7b1dee0736f1349c9bdbf

Version is: Version 1.5.1, Git revision 356fc5a x86_64 hpack-0.17.1

Repro is just that "stack build --force-dirty hblog" and "stack build --coverage hblog" do not recompile any of the executables, but "echo ' ' >>app/hblog.hs" followed by stack build does do so.

Expected

Rebuilds for both --force-dirty and --coverage.

Actual

Here's a non-verbose example with --coverage:

rlpowell@e8162885bd95> stack build --coverage hblog
hblog-0.1.0.0: unregistering (flags changed from [] to ["--ghc-options","-fhpc"])
hblog-0.1.0.0: configure (lib + exe)
Configuring hblog-0.1.0.0...
hblog-0.1.0.0: build (lib + exe)
Preprocessing library hblog-0.1.0.0...
Preprocessing executable 'hblog' for hblog-0.1.0.0...
Preprocessing executable 'rectifier' for hblog-0.1.0.0...
Preprocessing executable 'tiki_to_md' for hblog-0.1.0.0...
Preprocessing executable 'unphone' for hblog-0.1.0.0...
hblog-0.1.0.0: copy/register
Installing library in
/home/rlpowell/src/hblog/.stack-work/install/x86_64-linux/lts-8.16/8.0.2/lib/x86_64-linux-ghc-8.0.2/hblog-0.1.0.0-7cALF3ewsIBLsLx7HTEy4X
Installing executable(s) in
/home/rlpowell/src/hblog/.stack-work/install/x86_64-linux/lts-8.16/8.0.2/bin
Registering hblog-0.1.0.0...
No tix files found in /home/rlpowell/src/hblog/.stack-work/install/x86_64-linux/lts-8.16/8.0.2/hpc/, so not generating a unified coverage report.

Various --verbose examples are at https://gist.github.com/anonymous/7508edb28c1c691951c73bc802504bf3 ; note in particular that when I append a new space to one of the source files, that executable does get rebuilt.

Stack version

$ stack --version
Version 1.5.0, Git revision 63267f94d7c819cbecc2d59aa259d17240838e43 (4845 commits) x86_64 hpack-0.17.1

Method of installation

stack upgrade --git , a few hours ago.

@rlpowell
Copy link
Author

rlpowell commented Aug 2, 2017

Pursuant to #1940 , stack test --coverage hblog also recompiles nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants