Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stack build --nix drops me into a shell #1778

Closed
zimbatm opened this issue Feb 11, 2016 · 2 comments
Closed

stack build --nix drops me into a shell #1778

zimbatm opened this issue Feb 11, 2016 · 2 comments

Comments

@zimbatm
Copy link

zimbatm commented Feb 11, 2016

Hi,

unfortunately it's not an open-source repo but I've got something weird going on an would like to describe it the best that I can:

I have a project with a stack.yml that looks like this:

---                                                                  
packages:
- .
- location:
    git: git@github.com:foo/bar.git
    commit: 9fabc6170a09e7a7aff5acaa8caffac0a30b90ed
    extra-dep: true
extra-deps:
  - messagepack-0.5.1
  - cereal-0.5.1.0
resolver: lts-4.1
$ stack --version
Version 1.0.2 x86_64
$ stack build --nix
< sleeps for a bit, no output >
[zimbatm@xps13:~/code/my/projet]$ <dropped into that nix-shell look-alike>
[zimbatm@xps13:~/code/my/projet]$ exit
$

Then I tried running it with strace -fF and I got a bunch of exit(1) at the end but it terminated. So I tried running cat | stack build --nix and got a proper Haskell compilation output with a complaint that zlib.h is not found.

I suspect that the command that you are running detected an interactive input and behaves differently in that case.

@YPares
Copy link
Collaborator

YPares commented Feb 12, 2016

@zimbatm Is it possible you give us a minimal working example? We can't reproduce the bug here.

@zimbatm
Copy link
Author

zimbatm commented Feb 15, 2016

Closing as I am not able to reproduce the issue anymore. I think that it was an issue with nix which I upgraded since.

@zimbatm zimbatm closed this as completed Feb 15, 2016
YPares added a commit that referenced this issue Mar 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants