Git Product home page Git Product logo

Comments (11)

AliceRixte avatar AliceRixte commented on July 26, 2024 1

The file CONTRIBUTING.md also contains some instructions to build via stack, so I guess it also would need an update :)

from containers.

Bodigrim avatar Bodigrim commented on July 26, 2024

Any particular reason to use GHC 8.4? Is it with Stack?

from containers.

AliceRixte avatar AliceRixte commented on July 26, 2024

Yes I used stack build on a clone of the current repository. The current stack.yaml uses the lts-12.26 so that's why. I've tried other resolvers though, and it also fails. More recent ones fail with broken dependencies. For instance when using
resolver: ghc-9.6.1
The build fails with broken dependencies :

While constructing the build plan, Stack encountered the following errors:   

       In the dependencies for containers-tests-0:
           QuickCheck needed, but the Stack configuration has no specified
                      version (latest matching version is 2.14.2)
           nothunks needed, but the Stack configuration has no specified
                    version (latest matching version is 0.1.3)
       needed since containers-tests is a build target.

from containers.

AliceRixte avatar AliceRixte commented on July 26, 2024

Again, this only happens with containers-test, when setting

packages:
- containers

in stack.yaml, everything compiles fine.

from containers.

Bodigrim avatar Bodigrim commented on July 26, 2024

I would recommend using vanilla cabal when working on containers. Given how outdated is stack.yaml you seem to be the first daring soul to use stack in quite a few years.

Try stack clean?

from containers.

AliceRixte avatar AliceRixte commented on July 26, 2024

stack clean doesn't change anything. I guess I'll switch to cabal.
Thanks a lot for your quick answers ! :-)

from containers.

Bodigrim avatar Bodigrim commented on July 26, 2024

The background is that this kind of error usually happens when there are stalled interface files, written by a newer version GHC but read by an old one or vice versa. Usually updating Stack, cleaning .stack-work and using a reasonably recent GHC (e. g., 9.2) solves it, but there might be some complications.

Last time I used Stack with boot libraries, it got somewhat confused and asked me to pin all boot dependencies as extra-deps. This basically limits any added value, and it is easier to use Cabal.

from containers.

treeowl avatar treeowl commented on July 26, 2024

@Bodigrim , I don't remember who wanted a stack.yaml. Should we just get rid of it to reduce confusion?

from containers.

treeowl avatar treeowl commented on July 26, 2024

Reopening because we don't want stale code that tricks people.

from containers.

Bodigrim avatar Bodigrim commented on July 26, 2024

Yeah, I think it's better to drop stack.yaml.

from containers.

treeowl avatar treeowl commented on July 26, 2024

I'm working on that.

from containers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.