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

stack ghci rebuilds everything #918

Closed
UnkindPartition opened this issue Sep 4, 2015 · 1 comment
Closed

stack ghci rebuilds everything #918

UnkindPartition opened this issue Sep 4, 2015 · 1 comment

Comments

@UnkindPartition
Copy link
Contributor

I usually run stack build with --ghc-options=-O0. But even when I try to pass the same flag to stack ghci, it rebuilds everything saying

flags changed from ["--ghc-options","-O0"] to []

Here's the (beginning of) verbose output from stack ghci:

% stack ghci --ghc-options=-O0 presta-lib -v
Version 0.1.4.0, Git revision 203eb683b79f4dbd6bbed85dcd4fe893978af954 (dirty) (1738 commits) X86_64
2015-09-04 11:52:09.253531: [debug] Checking for project config at: /home/feuerbach/work/presta/lib/stack.yaml @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Config src/Stack/Config.hs:466:9)
2015-09-04 11:52:09.253702: [debug] Checking for project config at: /home/feuerbach/work/presta/stack.yaml @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Config src/Stack/Config.hs:466:9)
2015-09-04 11:52:09.253767: [debug] Loading project config file /home/feuerbach/work/presta/stack.yaml @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Config src/Stack/Config.hs:489:13)
2015-09-04 11:52:09.257478: [debug] Trying to decode /home/feuerbach/.stack/build-plan-cache/x86_64-linux/lts-3.3.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:77:5)
2015-09-04 11:52:09.267728: [debug] Success decoding /home/feuerbach/.stack/build-plan-cache/x86_64-linux/lts-3.3.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:86:13)
2015-09-04 11:52:09.268515: [debug] Run process: ghc --info @(stack_Gvs8JrwPFdy36TPQd3Itpk:System.Process.Read src/System/Process/Read.hs:260:3)
2015-09-04 11:52:09.296445: [debug] Run process: ghc --numeric-version @(stack_Gvs8JrwPFdy36TPQd3Itpk:System.Process.Read src/System/Process/Read.hs:260:3)
2015-09-04 11:52:09.313049: [debug] Run process: ghc-pkg --no-user-package-db field --simple-output Cabal version @(stack_Gvs8JrwPFdy36TPQd3Itpk:System.Process.Read src/System/Process/Read.hs:260:3)
2015-09-04 11:52:09.330374: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack_Gvs8JrwPFdy36TPQd3Itpk:System.Process.Read src/System/Process/Read.hs:260:3)
2015-09-04 11:52:09.347172: [debug] Checking resolver: lts-3.3 @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Source src/Stack/Build/Source.hs:162:17)
2015-09-04 11:52:09.3473: [debug] Trying to decode /home/feuerbach/.stack/build-plan-cache/x86_64-linux/lts-3.3.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:77:5)
2015-09-04 11:52:09.353112: [debug] Success decoding /home/feuerbach/.stack/build-plan-cache/x86_64-linux/lts-3.3.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:86:13)
2015-09-04 11:52:09.372184: [debug] Checking resolver: lts-3.3 @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Source src/Stack/Build/Source.hs:162:17)
2015-09-04 11:52:09.372307: [debug] Trying to decode /home/feuerbach/.stack/build-plan-cache/x86_64-linux/lts-3.3.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:77:5)
2015-09-04 11:52:09.378892: [debug] Success decoding /home/feuerbach/.stack/build-plan-cache/x86_64-linux/lts-3.3.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:86:13)
2015-09-04 11:52:09.391588: [debug] Trying to decode /home/feuerbach/.stack/indices/Hackage/00-index.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:77:5)
2015-09-04 11:52:09.545592: [debug] Success decoding /home/feuerbach/.stack/indices/Hackage/00-index.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:86:13)
2015-09-04 11:52:09.620749: [debug] Checking resolver: lts-3.3 @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Source src/Stack/Build/Source.hs:162:17)
2015-09-04 11:52:09.620878: [debug] Trying to decode /home/feuerbach/.stack/build-plan-cache/x86_64-linux/lts-3.3.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:77:5)
2015-09-04 11:52:09.624351: [debug] Success decoding /home/feuerbach/.stack/build-plan-cache/x86_64-linux/lts-3.3.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:86:13)
2015-09-04 11:52:09.643013: [debug] Trying to decode /home/feuerbach/.stack/indices/Hackage/00-index.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:77:5)
2015-09-04 11:52:09.779829: [debug] Success decoding /home/feuerbach/.stack/indices/Hackage/00-index.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:86:13)
2015-09-04 11:52:09.839673: [debug] Run process: ghc-pkg --global --no-user-package-db dump --expand-pkgroot @(stack_Gvs8JrwPFdy36TPQd3Itpk:System.Process.Read src/System/Process/Read.hs:260:3)
2015-09-04 11:52:09.863821: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /home/feuerbach/.stack/snapshots/x86_64-linux/lts-3.3/7.10.2/pkgdb/ dump --expand-pkgroot @(stack_Gvs8JrwPFdy36TPQd3Itpk:System.Process.Read src/System/Process/Read.hs:260:3)
2015-09-04 11:52:09.938508: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/pkgdb/ dump --expand-pkgroot @(stack_Gvs8JrwPFdy36TPQd3Itpk:System.Process.Read src/System/Process/Read.hs:260:3)
2015-09-04 11:52:09.955061: [debug] Trying to decode /home/feuerbach/.stack/indices/Hackage/00-index.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:77:5)
2015-09-04 11:52:10.095277: [debug] Success decoding /home/feuerbach/.stack/indices/Hackage/00-index.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:86:13)
2015-09-04 11:52:10.096195: [debug] Trying to decode /home/feuerbach/.stack/indices/Hackage/00-index.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:77:5)
2015-09-04 11:52:10.240863: [debug] Success decoding /home/feuerbach/.stack/indices/Hackage/00-index.cache @(stack_Gvs8JrwPFdy36TPQd3Itpk:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:86:13)
2015-09-04 11:52:10.310911: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack_Gvs8JrwPFdy36TPQd3Itpk:System.Process.Read src/System/Process/Read.hs:260:3)
2015-09-04 11:52:10.325462: [info] monad-classes-0.2.2.1: unregistering (flags changed from ["--ghc-options","-O0"] to []) @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:422:17)
2015-09-04 11:52:10.325591: [debug] Run process: ghc-pkg --no-user-package-db --package-db=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/pkgdb/ unregister --user --force --ipid monad-classes-0.2.2.1-70f7805191c1119c9e53b57f99b996b5 @(stack_Gvs8JrwPFdy36TPQd3Itpk:System.Process.Read src/System/Process/Read.hs:260:3)
2015-09-04 11:52:10.34785: [info] mysql-0.1.2: unregistering (flags changed from ["--ghc-options","-O0"] to []) @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:422:17)
2015-09-04 11:52:10.34797: [debug] Run process: ghc-pkg --no-user-package-db --package-db=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/pkgdb/ unregister --user --force --ipid mysql-0.1.2-c1dc80323b0611ac8e941b1d48eaf075 @(stack_Gvs8JrwPFdy36TPQd3Itpk:System.Process.Read src/System/Process/Read.hs:260:3)
2015-09-04 11:52:10.363322: [info] test-equal-1.0: unregistering (flags changed from ["--ghc-options","-O0"] to []) @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:422:17)
2015-09-04 11:52:10.363453: [debug] Run process: ghc-pkg --no-user-package-db --package-db=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/pkgdb/ unregister --user --force --ipid test-equal-1.0-11121fb91464420a2aac6c0ec296ba89 @(stack_Gvs8JrwPFdy36TPQd3Itpk:System.Process.Read src/System/Process/Read.hs:260:3)
2015-09-04 11:52:10.384195: [info] monad-classes-0.2.2.1: configure @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:588:23)
2015-09-04 11:52:10.38476: [debug] Run process: /home/feuerbach/.stack/setup-exe-cache/setup-Simple-Cabal-1.22.4.0-x86_64-linux-ghc-7.10.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/ configure --user --package-db=clear --package-db=global --package-db=/home/feuerbach/.stack/snapshots/x86_64-linux/lts-3.3/7.10.2/pkgdb/ --package-db=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/pkgdb/ --libdir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/lib --bindir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/bin --datadir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/share --libexecdir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/libexec --sysconfdir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/etc --docdir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/doc/monad-classes-0.2.2.1 --htmldir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/doc/monad-classes-0.2.2.1 --haddockdir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/doc/monad-classes-0.2.2.1 --dependency=base=base-4.8.1.0-4f7206fd964c629946bb89db72c80011 --dependency=ghc-prim=ghc-prim-0.4.0.0-af16264bc80979d06e37ac63e3ba9a21 --dependency=mmorph=mmorph-1.0.4-dd38bfb9311d09724528d9d040ed8e39 --dependency=monad-control=monad-control-1.0.0.4-9b806c409db033e571fac7650e2dbb97 --dependency=reflection=reflection-2-e399a859a760dc2259b0c5f750f24454 --dependency=transformers=transformers-0.4.2.0-21dcbf13c43f5d8cf6a1f54dee6c5bff --dependency=transformers-base=transformers-base-0.4.4-47d17665c0db26ffcb68c46caa7346c1 --dependency=transformers-compat=transformers-compat-0.4.0.4-3ca5cbcec233c17da785d5f27705643c --enable-tests --enable-benchmarks @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:697:21)
2015-09-04 11:52:10.961908: [info] monad-classes-0.2.2.1: build @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:588:23)
2015-09-04 11:52:10.962069: [info] test-equal-1.0: configure @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:588:23)
2015-09-04 11:52:10.962166: [debug] Run process: /home/feuerbach/.stack/setup-exe-cache/setup-Simple-Cabal-1.22.4.0-x86_64-linux-ghc-7.10.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/ build lib:monad-classes --ghc-options "-hpcdir .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/hpc/.hpc/ -ddump-hi -ddump-to-file" @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:697:21)
2015-09-04 11:52:10.962846: [debug] Run process: /home/feuerbach/.stack/setup-exe-cache/setup-Simple-Cabal-1.22.4.0-x86_64-linux-ghc-7.10.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/ configure --user --package-db=clear --package-db=global --package-db=/home/feuerbach/.stack/snapshots/x86_64-linux/lts-3.3/7.10.2/pkgdb/ --package-db=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/pkgdb/ --libdir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/lib --bindir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/bin --datadir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/share --libexecdir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/libexec --sysconfdir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/etc --docdir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/doc/test-equal-1.0 --htmldir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/doc/test-equal-1.0 --haddockdir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/doc/test-equal-1.0 --dependency=base=base-4.8.1.0-4f7206fd964c629946bb89db72c80011 --dependency=generics-sop=generics-sop-0.1.1.2-16cd2fb649b7ffc7ea6f98112efdb675 --dependency=text=text-1.2.1.3-202edba6fea901191194d38d810da662 --dependency=transformers=transformers-0.4.2.0-21dcbf13c43f5d8cf6a1f54dee6c5bff --enable-tests --enable-benchmarks @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:697:21)
2015-09-04 11:52:11.583718: [info] monad-classes-0.2.2.1: install @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:588:23)
2015-09-04 11:52:11.583921: [debug] Run process: /home/feuerbach/.stack/setup-exe-cache/setup-Simple-Cabal-1.22.4.0-x86_64-linux-ghc-7.10.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/ install @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:697:21)
2015-09-04 11:52:11.682862: [info] test-equal-1.0: build @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:588:23)
2015-09-04 11:52:11.683045: [info] mysql-0.1.2: configure @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:588:23)
2015-09-04 11:52:11.683187: [debug] Run process: /home/feuerbach/.stack/setup-exe-cache/setup-Simple-Cabal-1.22.4.0-x86_64-linux-ghc-7.10.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/ build lib:test-equal --ghc-options "-hpcdir .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/hpc/.hpc/ -ddump-hi -ddump-to-file" @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:697:21)
2015-09-04 11:52:11.68387: [debug] Run process: /home/feuerbach/.stack/programs/x86_64-linux/ghc-7.10.2/bin/runhaskell -package=Cabal-1.22.4.0 -clear-package-db -global-package-db -package-db=/home/feuerbach/.stack/snapshots/x86_64-linux/lts-3.3/7.10.2/pkgdb/ /home/feuerbach/work/presta/forks/mysql/Setup.lhs --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/ configure --user --package-db=clear --package-db=global --package-db=/home/feuerbach/.stack/snapshots/x86_64-linux/lts-3.3/7.10.2/pkgdb/ --package-db=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/pkgdb/ --libdir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/lib --bindir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/bin --datadir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/share --libexecdir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/libexec --sysconfdir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/etc --docdir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/doc/mysql-0.1.2 --htmldir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/doc/mysql-0.1.2 --haddockdir=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/doc/mysql-0.1.2 --dependency=base=base-4.8.1.0-4f7206fd964c629946bb89db72c80011 --dependency=bytestring=bytestring-0.10.6.0-2362d1f36f1255e85478e7793e15b170 --dependency=containers=containers-0.5.6.2-2de75421d746ab474b330e43191bb31b --enable-tests --enable-benchmarks @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:697:21)
2015-09-04 11:52:11.801638: [debug] Run process: ghc-pkg --no-user-package-db --package-db=/home/feuerbach/.stack/snapshots/x86_64-linux/lts-3.3/7.10.2/pkgdb/ --package-db=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/pkgdb/ field --simple-output monad-classes id @(stack_Gvs8JrwPFdy36TPQd3Itpk:System.Process.Read src/System/Process/Read.hs:260:3)
2015-09-04 11:52:12.312294: [info] test-equal-1.0: install @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:588:23)
2015-09-04 11:52:12.312506: [debug] Run process: /home/feuerbach/.stack/setup-exe-cache/setup-Simple-Cabal-1.22.4.0-x86_64-linux-ghc-7.10.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.4.0/ install @(stack_Gvs8JrwPFdy36TPQd3Itpk:Stack.Build.Execute src/Stack/Build/Execute.hs:697:21)
2015-09-04 11:52:12.518727: [debug] Run process: ghc-pkg --no-user-package-db --package-db=/home/feuerbach/.stack/snapshots/x86_64-linux/lts-3.3/7.10.2/pkgdb/ --package-db=/home/feuerbach/work/presta/.stack-work/install/x86_64-linux/lts-3.3/7.10.2/pkgdb/ field --simple-output test-equal id @(stack_Gvs8JrwPFdy36TPQd3Itpk:System.Process.Read src/System/Process/Read.hs:260:3)
@UnkindPartition
Copy link
Contributor Author

Possibly a dup of #382

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

No branches or pull requests

1 participant