Confused by stack's behaviour when changing targets

2 views
Skip to first unread message

Arnaud Bailly

unread,
Jan 11, 2018, 10:32:39 AM1/11/18
to haskell-stack
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

Michael Snoyman

unread,
Jan 11, 2018, 2:21:09 PM1/11/18
to Arnaud Bailly, haskell-stack

It's a bug that was just fixed on master and stable. See https://github.com/commercialhaskell/stack/issues/3732


--
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-stac...@googlegroups.com.
To post to this group, send email to haskel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/CAL4zPap1XUSyi3TazJ9cPj38KTNJe-Ej7x9wDsSgWsGynUc7AA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Arnaud Bailly

unread,
Jan 11, 2018, 3:18:29 PM1/11/18
to Michael Snoyman, haskell-stack
Thanks a lot ! 

-- 
Arnaud Bailly - @dr_c0d3

On Thu, Jan 11, 2018 at 8:20 PM, Michael Snoyman <michael...@gmail.com> wrote:

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...@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+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages