GithubHelp home page GithubHelp logo

Comments (9)

novemberkilo avatar novemberkilo commented on June 12, 2024 1

Looks like this issue can be closed? // @newhoggy @tmcgilchrist

from mafia.

newhoggy avatar newhoggy commented on June 12, 2024 1

Sorry, I haven't been using mafia for a while now, so I'm unable to contribute more to this ticket. I think it is appropriate to close this ticket.

from mafia.

tmcgilchrist avatar tmcgilchrist commented on June 12, 2024

Try mafia update to upgrade your cabal package list.

from mafia.

jacobstanley avatar jacobstanley commented on June 12, 2024

Try mafia update to upgrade your cabal package list.

I think hw-rankselect is source dependency, so this probably won't help.

@newhoggy got a link to the repo? it looks like mafia isn't finding the cabal file for hw-rankselect in your git repository, or in a submodule.

from mafia.

newhoggy avatar newhoggy commented on June 12, 2024

The repository does not have a .submodules file.

Here is the failing build:

Rebuild without cache works:

They are both building against commit id 06c5f83.

This commit id is tagged and can be viewed here: https://github.com/haskell-works/hw-succinct/tree/v0.0.0.8

Even though there is no .submodules file, I may have had such a file somewhere earlier in the history of the project. Is it possibly that mafia has stored some state about the .submodules file and is failing because of that despite having removed it?

from mafia.

jacobstanley avatar jacobstanley commented on June 12, 2024

Ok I think I misunderstood, I guess hw-rankselect is not supposed to be a source dependency, but should come from hackage?

I noticed that you are caching /home/ubuntu/hw-succinct/.cabal-sandbox, I wonder if removing that from the cache might make it work.

from mafia.

newhoggy avatar newhoggy commented on June 12, 2024

I'm not caching the /home/ubuntu/hw-succinct/.cabal-sandbox, at least not intentionally.

The circle.yml file specifies the following: directories for caching:

  cache_directories:
    - "~/.ambiata"
    - "~/.cabal"
    - "~/.ghc"

Could ~/.cabal or ~/.ghc be the problem?

from mafia.

markhibberd avatar markhibberd commented on June 12, 2024

@newhoggy I think it could be back to what @tmcgilchrist said originally, hw-rankselect has only been on hackage for a day so unless you have run cabal update it doesn't know about it which makes it looks like a submodule in the error message, the cache for cabal update is in ~/.cabal so it would be persisted between builds. If you are running mafia update you should note it only updates from hackage once a day so depending on timings it may not of picked up that version yet (but would tomorrow), if you want to force it you could run cabal update directly. The only other possibility which I only mention because I have no idea about the innards of circle-ci is that if it does something dumb with sync the cache (for example updating the timestamp rather than keeping the original file attributes) it might mess with how mafia update determines how fresh the pacakges file from hackage is.

from mafia.

newhoggy avatar newhoggy commented on June 12, 2024

Cool. I think I have the information I need to know what to look out for. Currently my builds aren't in this state so I'll wait till it happens again, then take a look and report back.

Thanks!

from mafia.

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.