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

Cannot use both Docker and Nix at the same time #5

Open
maridonkers opened this issue Aug 30, 2021 · 0 comments
Open

Cannot use both Docker and Nix at the same time #5

maridonkers opened this issue Aug 30, 2021 · 0 comments

Comments

@maridonkers
Copy link

maridonkers commented Aug 30, 2021

A stack build results in the following error message when using Nix:

$ stack build
UnliftIO.Exception.throwString called with:

Cannot use both Docker and Nix at the same time
Called from:
  throwString (src/Stack/Runners.hs:108:21 in stack-2.7.1-IKhLtcyrcbGCjzePWCOXpj:Stack.Runners)

Which can be fixed by inserting a nix disable in stack.yaml (under the docker enable); the updated stack.yaml section is as follows:

docker:
    enable: true

# <--- this section inserted
nix:
    enable: false  

Alternatively use the following command to initiate a build:

stack build --docker --no-nix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant