Hi Luke,
Thanks for your answer! On Tue, Dec 19, 2017 at 2:31 PM, Luke Murphy <[email protected]> wrote: > Hi Arnaud, > > Interesting setup you have there. > > I am not sure how I should take this statement :) > So, Shake triggers a build, and you fire up a container and run Stack > inside that? I assume that it does a full rebuild because it is a fresh > container - regardless of Stack managing .stack and project changes. > Actually no, I mount the full project's directory into the container so I (usually) get incremental builds. What's bothersome is that I don't have stack's dependencies in shake so I sometimes rebuild too much, e.g. I rebuild the service container even if only the tester's code changes. I was looking at `stack dot` which produces a dependency graph, but it seemed ridiculous to parse a graphviz file to reconstruct a dependency graph in my haskell code, so I had a look at stack's code itself but it's really not obvious how to get that graph directly. > Perhaps you can look into directly using the built in docker support: > > https://docs.haskellstack.org/en/stable/docker_integration/#usage > > Yes, that I will do. It will probably simplify our CI pipeline too... but it will require some work -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/CAL4zPappddu3Jp0yemJ-M8U4RnpFqJutvzPH7b7kobQ06XikFw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
