Closed ShrykeWindgrace closed 6 years ago
Can you try this:
stack install tldr-0.2.5 --resolver nightly-2018-01-21
Infact, even this should work:
stack install tldr-0.2.5 --resolver lts-10.3
Both
stack install tldr-0.2.5 --resolver nightly-2018-01-21
and
stack install tldr-0.2.5 --resolver lts-10.3
give
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for shell-conduit-4.6.1:
unix must match >=2.7.0.1, but the stack configuration has no specified version (latest matching
version is 2.7.2.2)
needed due to tldr-0.2.5 -> shell-conduit-4.6.1
Some potential ways to resolve this:
* Recommended action: try adding the following to your extra-deps
in C:\sr\global-project\stack.yaml:
- unix-2.7.2.2
* Set 'allow-newer: true' to ignore all version constraints and build anyway.
* You may also want to try using the 'stack solver' command.
Plan construction failed.
On a second thought, why do we need a dependency on the unix
package on a windows machine?
unix
is a transitive dependency. My guess is that shell-conduit
package is not portable and doesn't work on Windows. A possible solution is to move to typed-process
for the things I'm using shell-conduit
for. Want to send a PR ?
Ok, I see. I will take a look at the code, if it is not too complicated, I'll send a PR, and if I'm out of my depth, I'll let you know, too=)
👍
Hi! I managed to build a working version (on both ubuntu16 and win10) with, as you suggested, typed-process
in place of shell-conduit
. I'll make some cleanup in my code and I will send a PR later today.
Awesome!
On Mon, Jan 29, 2018, 9:43 PM ShrykeWindgrace notifications@github.com wrote:
Hi! I managed to build a working version (on both ubuntu16 and win10) with, as you suggested, typed-process in place of shell-conduit. I'll make some cleanup in my code and I will send a PR later today.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/psibi/tldr-hs/issues/9#issuecomment-361296574, or mute the thread https://github.com/notifications/unsubscribe-auth/AAtAxTH0E39hEL-oVlHhjpZzQk2o58YWks5tPe4TgaJpZM4Rpef5 .
Closing since this is fixed by #10
I have a released a new version in Hackage with your fixes. Thanks!
That's great=)
If I install it with
stack install tldr
, I getIf I do it manually
stack unpack tldr ; cd tldr-0.2.5 ; stack init ; stack build
I getWhen I follow the advice of
stack
to add theunix
dependency in extra-deps, I getand then it snowballs from there.
What would be the correct approach to build
tldr
on a win10 machine?Conf: stack 1.6.3, win10 with all updates, tldr-0.2.5