Open runeksvendsen opened 6 years ago
running into same issue with freshly downloaded stack 1.7.1
@mgsloan This seems related to #2614 and the related fix #2830
@abailly and @runeksvendsen would one of you be able to test with master?
I suspect it won't fix the issue but it's worth confirming.
@dbaynard running stack upgrade --git
followed by going through the steps above to reproduce the bug, I get the following error at the stack build
-step:
Runes-MacBook-Pro:docker-bug runesvendsen$ stack build
Downloading Docker-compatible stack executable
Control.Exception.Safe.throwString called with:
Could not get release information for Stack from: https://api.github.com/repos/commercialhaskell/stack/releases/tags/v1.8.0
Called from:
throwString (src/Stack/Setup.hs:1824:14 in stack-1.8.0-1iO6z6o89x11YM8z8RL59i:Stack.Setup)
Is it not sufficient to run stack upgrade --git
to get a Docker-compatible stack built from master?
It should be. I'm not quite sure what's going on here, though — I'll get somebody else to take a look.
Thanks for bearing with the delay.
There aren't pre-built docker compatible binaries for the master
branch (since master is changing all the time). You'll have to build a Linux executable yourself and then point to it with --docker-stack-exe
.
I don't understand what to do.
I'm on OSX using Docker for Mac. Which executable do I have to build, and how do I use the --docker-stack-exe
option?
Had same issue on docker 18.06.0-ce-mac70 with stack 1.7.1 and fpco/stack-build:lts-10.10 image. Removed both ~/.stack and .stack-work, updated docker and the issue is gone now. Not sure what exactly solved the problem. Tried to clean stack directories earlier and it didn't help but hard to believe it's docker...
General summary/comments (optional)
InvalidAbsDir "(unreachable)/"
while building withfpco/stack-build
docker imageSteps to reproduce
stack.yaml
Expected
Successful build
Actual
Error (
InvalidAbsDir "(unreachable)/"
) during build.Verbose build log: https://gist.github.com/runeksvendsen/d7f87ef79f49e450895ba004444f4c68
Stack version
Method of installation
Further information
Docker for Mac: version:
18.03.0-ce-mac59 (dd2831d4b7421cf559a0881cc7a5fdebeb8c2b98)
macOS:version 10.13.3 (build: 17D102)