It's a bug that was just fixed on master and stable. See https://github.com/commercialhaskell/stack/issues/3732
On Thu, Jan 11, 2018, 5:32 PM Arnaud Bailly <arnaud.oq...@gmail.com> wrote: > Hello (and Happy New Year to the list), > > I am a little bit puzzled by stack's behaviour w.r.t to build targets > selection. > > Within a multi-package project, I can run > > $ stack test > > to build and test all packages, pr > > # stack test mypackage > > to select which package to build. > > When I switched from one to the other I noticed that the whole dependency > graph is rebuilt: Is this expected? And if so, why is it the case? > > Regards, > -- > Arnaud Bailly - @dr_c0d3 > > -- > You received this message because you are subscribed to the Google Groups > "haskell-stack" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to haskell-stack+unsubscr...@googlegroups.com. > To post to this group, send email to haskell-stack@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/haskell-stack/CAL4zPap1XUSyi3TazJ9cPj38KTNJe-Ej7x9wDsSgWsGynUc7AA%40mail.gmail.com > <https://groups.google.com/d/msgid/haskell-stack/CAL4zPap1XUSyi3TazJ9cPj38KTNJe-Ej7x9wDsSgWsGynUc7AA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "haskell-stack" group. To unsubscribe from this group and stop receiving emails from it, send an email to haskell-stack+unsubscr...@googlegroups.com. To post to this group, send email to haskell-stack@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/CAKA2JgJqqwXidYoDKuerV9%3DLUQApBo%3Dys5pOg4bGZ8woETq2YA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.