Giter Club home page Giter Club logo

Comments (5)

tomsmeding avatar tomsmeding commented on June 21, 2024 1

I see! If this is all you need, then the answer is:

source-repository-package
    ...
    post-checkout-command: bash -c "git submodule update --init --recursive"

for cabal >= 3.8. For cabal < 3.8, you'll need to put ! before git, because it had a bug where it thought a unix status code of 1 meant "true".

from accelerate.

tomsmeding avatar tomsmeding commented on June 21, 2024

If I recall correctly, the situation here is that those files do exist if the tracy submodule is cloned, which happens if the -fdebug flag is set. And in this case, the C files are actually needed. However, cabal does not allow putting a flag conditional around extra-source-files (perhaps for good reason), so we're in a catch.

What do you need an sdist for?

from accelerate.

amigalemming avatar amigalemming commented on June 21, 2024

Aha, it seems I must pull a submodule.

Ok, my original problem is, I want to fetch accelerate/GIT-HEAD in a cabal.project.local:

source-repository-package
   type: git
   location: https://github.com/AccelerateHS/accelerate/
   tag: 5ceb2da5d9ddc4ea0a5705d46bf4de9321ba17da

and this fails because of the missing submodule. I must Cabal teach somehow to also pull that submodule.

When I build this project, Cabal fetches the Git repository and then seems to package that working copy with cabal sdist.

from accelerate.

amigalemming avatar amigalemming commented on June 21, 2024

Perfect, this solves my problem!

from accelerate.

tomsmeding avatar tomsmeding commented on June 21, 2024

Thanks for asking, now there is something that people can find when searching for the error message :)

EDIT: for future visitors: if you have a good idea how to manage this extra-source-files field where the contents depends on whether a cabal flag is enabled, please let us know. For the time being, this is what it is.

from accelerate.

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.