-
Notifications
You must be signed in to change notification settings - Fork 842
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 determine project root directory for Docker sandbox." error even when Docker support is disabled #4864
Comments
@borsboom Hi! Do you have any idea about what is happening here? |
Hello, thanks for reporting. Would you share some project information (e.g. stack.yaml, package.yaml/cabal files)? Also, precisely which |
Hi @dbaynard! stack.yamlnix:
enable: true
pure: false
packages: [glpk, pcre, curl, zlib]
docker:
enable: false I am unable to give you the content of any I am indeed running this command (but any other, actually) from my home directory. |
A couple of questions:
I suspect the mention of Docker in the error message is a red herring, because the Nix code was initially based on the Docker code and it looks like it re-uses this error message. |
Hi @borsboom!
|
@Kleidukos but I guess 2nd and 3rd options disable nix integration - are you OK with disabling it? |
@qrilka I enabled it at the project level, and it works :/ I don't understand why it would fail at the global level and not at the project level, but it seems to be working 🤷♀️ Edit: I'm running Fedora 30 |
That sounds like some odd bug to me :) |
For what it's worth, NixOS users can't use Stack and disable Nix integration, so this effectively makes certain commands unusable there. |
@ttuegel that's not quite correct: nix mode is the default but it's not 100% required but you need to supply GHC by some other way (Nix seems to be the most obvious choice in this case) as an example see https://gist.github.com/qrilka/2b21576e541412656bde0c4ca6c2064e |
@Kleidukos there was a Stack bug in |
General summary/comments (optional)
Stack produces a docker-related error when trying to create a new project
❯ stack new lol Cannot determine project root directory for Docker sandbox.
Steps to reproduce
Run
stack new <name>
Weep.
Stack version
Method of installation
stack upgrade
from the latest versionHow to resolve this
Does it solve it entirely?
No. It comes back after a while.
The text was updated successfully, but these errors were encountered: