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 cabal install stack-2.1.3 (pantry-0.1.1.0 fails) #4963

Closed
jwaldmann opened this issue Jul 15, 2019 · 7 comments
Closed

cannot cabal install stack-2.1.3 (pantry-0.1.1.0 fails) #4963

jwaldmann opened this issue Jul 15, 2019 · 7 comments
Labels
component: releases Platform support, automation

Comments

@jwaldmann
Copy link

Steps to reproduce

cabal update
cabal install -v stack-2.1.3

Expected

compile and install stack-2.1.3

Actual

...
[10 of 18] Compiling Pantry.Storage   ( src/Pantry/Storage.hs, dist/build/Pantry/Storage.o )

src/Pantry/Storage.hs:111:1: error:
    Generating Persistent entities now requires the 'UndecidableInstances' language extension. Please enable it in your file by copy/pasting this line into the top of your file: 

{-# LANGUAGE UndecidableInstances #-}
    |
111 | share [mkPersist sqlSettings, mkMigrate "migrateAll"] [persistLowerCase|
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
cabal: Leaving directory '/tmp/cabal-tmp-27400/pantry-0.1.1.0'

The same happens with

cabal sandbox init
cabal install stack
...
cabal: Leaving directory '/tmp/cabal-tmp-10081/pantry-0.1.1.0'
Updating documentation index
/home/waldmann/tmp/.cabal-sandbox/share/doc/x86_64-linux-ghc-8.6.5/index.html
cabal: Error: some packages failed to install:
pantry-0.1.1.0-B1j3vkbqrD3IavLcuBrKAZ failed during the building phase. The
exception was:
ExitFailure 1
stack-2.1.3-TO75vZYjMAJyN1Nevgm65 depends on stack-2.1.3 which failed to
install.

Stack version

cabal --version
cabal-install version 2.4.0.0
compiled using version 2.4.0.1 of the Cabal library

ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.6.5
@dbaynard
Copy link
Contributor

dbaynard commented Jul 15, 2019

Hello, this looks like the upper bound on persistent-template in stack is too lax, and should be persistent-template < 2.7.0 (see yesodweb/persistent#885). Thanks for reporting!

The code will need changing, too (but I'll try to get hackage fixed first).

@borsboom Would you add the upper bound as a hackage revision?

@dbaynard dbaynard added the component: releases Platform support, automation label Jul 15, 2019
@borsboom
Copy link
Contributor

@borsboom Would you add the upper bound as a hackage revision?

Done, in both pantry and stack.

I'll try to get a fix to support persistent-template-2.7.x onto hackage as well, but that might take a bit longer.

@dbaynard
Copy link
Contributor

I'm going to close, then. Thanks!

@dbaynard
Copy link
Contributor

(@jwaldmann please reopen if this doesn't fix your issue)

@borsboom
Copy link
Contributor

I've uploaded new pantry and stack packages that support building with persistent-template-2.7.x

@tombusby
Copy link

tombusby commented Nov 17, 2020

I have this exact issue currently when running cabal v2-install stack:

% cabal --version
cabal-install version 3.2.0.0
compiled using version 3.2.0.0 of the Cabal library
% ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.8.4

@jwaldmann
Copy link
Author

@tombusby perhaps #5298 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: releases Platform support, automation
Projects
None yet
Development

No branches or pull requests

4 participants