Add experimental stack-based build system #74
Conversation
I have no experience with the
|
9cf5024
to
0c94463
Compare
The 0.5 was a bad typo, now fixed. I double checked the SHA1 hash and it's correct. As for fsnotify, stack appears to honor the versions in extra-deps over what's in the resolver's setting. |
Actually, it appears stack does support tags (instead of SHA1 hashes) even though the docs explicitly states it does not. |
Okay. Another question: How does this ensure that elm-reactor is built only after elm-make has been built and installed in a place where the build of elm-reactor can already call it? Is the order in which the packages are listed in the .yaml file relevant for this? (And a contraposited question: Does stack use parallel building, i.e., like cabal install -j does?) |
Those are excellent points. Yes, stack builds things in parallel, so this won't work if elm-reactor is built first (which is unfortunately a very common occurrence on my machine). The following does work, however:
This is obviously a lot less convenient than just invoking |
This adds support for building elm-platform version 0.15.1 from source using stack. All that's needed is the latest stack (via `stack upgrade --git`) and the 0.15.1 `stack.yaml` file.
787dcbc
to
8c5928b
Compare
I believe |
@evancz, no, there is no such dependency listed for I now wonder though: Shouldn't we be able to actually say in The
Maybe that could be used to good effect. |
Unfortunately, stack seems to not respect dependencies in Also, it appears you can force stack to build things sequentially using |
I think it makes sense to have docs about stack if core development switches to using stack. Until then, I do not want to "support" two different build paths. One is hard enough! |
This adds support for building elm-platform version 0.15.1 from source using stack. All that's needed is the latest stack (via
stack upgrade --git
) and the 0.15.1stack.yaml
file.Then the user simply needs to runThen the user needs to either runstack install
and everything should just work.stack install --jobs=1
orIf they don't have the requisite GHC installed (in this case, 7.10), then stack will install the binary for them
automaticallyafter they runstack setup
.