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 image container does not work with stack 0.10.0.0 #1473

Closed
fizruk opened this issue Dec 5, 2015 · 5 comments
Closed

Stack image container does not work with stack 0.10.0.0 #1473

fizruk opened this issue Dec 5, 2015 · 5 comments
Assignees
Milestone

Comments

@fizruk
Copy link
Contributor

fizruk commented Dec 5, 2015

Here's verbose output:

$ stack image container -v
Version 0.1.10.0, Git revision a25892f8374d4bcbed6dd0f0c3bcb6cb93df490c (2778 commits) x86_64
2015-12-05 13:20:24.284479: [debug] Checking for project config at: /home/ubuntu/getshoptv/stack.yaml @(stack_CmMNd04E6niF0lFGLmWFKR:Stack.Config src/Stack/Config.hs:576:9)
2015-12-05 13:20:24.284756: [debug] Loading project config file stack.yaml @(stack_CmMNd04E6niF0lFGLmWFKR:Stack.Config src/Stack/Config.hs:599:13)
2015-12-05 13:20:24.286433: [debug] Run process: ldd /usr/bin/stack @(stack_CmMNd04E6niF0lFGLmWFKR:System.Process.Read src/System/Process/Read.hs:273:3)
2015-12-05 13:20:24.295527: [debug] Trying to decode /home/ubuntu/.stack/build-plan-cache/x86_64-linux/lts-3.12.cache @(stack_CmMNd04E6niF0lFGLmWFKR:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-12-05 13:20:24.301829: [debug] Success decoding /home/ubuntu/.stack/build-plan-cache/x86_64-linux/lts-3.12.cache @(stack_CmMNd04E6niF0lFGLmWFKR:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-12-05 13:20:24.301963: [debug] Trying to decode /home/ubuntu/.stack/indices/Hackage/00-index.cache @(stack_CmMNd04E6niF0lFGLmWFKR:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-12-05 13:20:24.554843: [debug] Success decoding /home/ubuntu/.stack/indices/Hackage/00-index.cache @(stack_CmMNd04E6niF0lFGLmWFKR:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-12-05 13:20:24.567058: [debug] Run process: ghc --info @(stack_CmMNd04E6niF0lFGLmWFKR:System.Process.Read src/System/Process/Read.hs:273:3)
2015-12-05 13:20:24.593589: [debug] Run process: ghc --numeric-version @(stack_CmMNd04E6niF0lFGLmWFKR:System.Process.Read src/System/Process/Read.hs:273:3)
2015-12-05 13:20:24.617785: [debug] Run process: ghc-pkg --no-user-package-db field --simple-output Cabal version @(stack_CmMNd04E6niF0lFGLmWFKR:System.Process.Read src/System/Process/Read.hs:273:3)
2015-12-05 13:20:24.640011: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack_CmMNd04E6niF0lFGLmWFKR:System.Process.Read src/System/Process/Read.hs:273:3)
2015-12-05 13:20:24.661749: [debug] Run process: locale -a @(stack_CmMNd04E6niF0lFGLmWFKR:System.Process.Read src/System/Process/Read.hs:273:3)
2015-12-05 13:20:24.674921: [debug] Checking resolver: lts-3.12 @(stack_CmMNd04E6niF0lFGLmWFKR:Stack.Build.Source src/Stack/Build/Source.hs:164:17)
2015-12-05 13:20:24.675084: [debug] Trying to decode /home/ubuntu/.stack/build-plan-cache/x86_64-linux/lts-3.12.cache @(stack_CmMNd04E6niF0lFGLmWFKR:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-12-05 13:20:24.680571: [debug] Success decoding /home/ubuntu/.stack/build-plan-cache/x86_64-linux/lts-3.12.cache @(stack_CmMNd04E6niF0lFGLmWFKR:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-12-05 13:20:24.991891: [debug] Run process: ghc-pkg --global --no-user-package-db dump --expand-pkgroot @(stack_CmMNd04E6niF0lFGLmWFKR:System.Process.Read src/System/Process/Read.hs:273:3)
2015-12-05 13:20:25.034530: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /home/ubuntu/.stack/snapshots/x86_64-linux/lts-3.12/7.10.2/pkgdb dump --expand-pkgroot @(stack_CmMNd04E6niF0lFGLmWFKR:System.Process.Read src/System/Process/Read.hs:273:3)
2015-12-05 13:20:25.182651: [debug] Run process: ghc-pkg --user --no-user-package-db --package-db /home/ubuntu/getshoptv/.stack-work/install/x86_64-linux/lts-3.12/7.10.2/pkgdb dump --expand-pkgroot @(stack_CmMNd04E6niF0lFGLmWFKR:System.Process.Read src/System/Process/Read.hs:273:3)
2015-12-05 13:20:25.212083: [debug] Trying to decode /home/ubuntu/.stack/indices/Hackage/00-index.cache @(stack_CmMNd04E6niF0lFGLmWFKR:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:55:5)
2015-12-05 13:20:25.418091: [debug] Success decoding /home/ubuntu/.stack/indices/Hackage/00-index.cache @(stack_CmMNd04E6niF0lFGLmWFKR:Data.Binary.VersionTagged src/Data/Binary/VersionTagged.hs:64:13)
2015-12-05 13:20:25.533478: [debug] Run process: ghc-pkg --no-user-package-db list --global @(stack_CmMNd04E6niF0lFGLmWFKR:System.Process.Read src/System/Process/Read.hs:273:3)

After that no images are created/pulled:

$ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE

Since no error is reported I suppose it just does not run the command.

@ga2arch
Copy link

ga2arch commented Dec 5, 2015

Now i see why my builds weren't updating the images on the registry, damn so much time lost.

@borsboom
Copy link
Contributor

borsboom commented Dec 6, 2015

I'm looking into this.

@borsboom borsboom self-assigned this Dec 6, 2015
@borsboom borsboom added this to the P1: Must milestone Dec 6, 2015
@fizruk
Copy link
Contributor Author

fizruk commented Dec 6, 2015

@borsboom thanks! Is there going to be a minor release or should I now use stack upgrade --git for my builds?

borsboom added a commit that referenced this issue Dec 13, 2015
fixes #1473

(cherry picked from commit 2301b9b)
@borsboom
Copy link
Contributor

I've release v0.1.10.1 with this fix.

@fizruk
Copy link
Contributor Author

fizruk commented Dec 14, 2015

@borsboom great! thanks!

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