Git Product home page Git Product logo

Comments (13)

ericmj avatar ericmj commented on September 23, 2024

If you are using @HashNuke's buildpack you can set always_rebuild=true in the buildpack config to not use the cached dependencies. Alternatively you can use https://github.com/heroku/heroku-repo and run heroku repo:purge_cached to remove everything cached.

from plug.

wkhere avatar wkhere commented on September 23, 2024

Yup but the thing is it didn't work with always_rebuild=true.

Thx for the heroku-repo tip!

Anyway, I think this could be improved in the long run. I intend to leave this issue for a while so I'd investigate it by myself (some ensure_loaded? stuff?). Is it ok?

from plug.

ericmj avatar ericmj commented on September 23, 2024

Yup but the thing is it didn't work with always_rebuild=true.

I will look into always_rebuild=true not working.

Anyway, I think this could be improved in the long run. I intend to leave this issue for a while so I'd investigate it by myself (some ensure_loaded? stuff?). Is it ok?

It looks like there may be an underlying issue in mix's dependency compilation. I don't think the issue is on plug.

from plug.

wkhere avatar wkhere commented on September 23, 2024

I see. OK then. :)

from plug.

josevalim avatar josevalim commented on September 23, 2024

@ericmj I think this issue is the same as elixir-ecto/ecto#264. Because we no longer always call mix deps.loadpaths, when we compile a dependency, its dependencies were not loaded, leading to both failures.

from plug.

josevalim avatar josevalim commented on September 23, 2024

Fixed on Elixir master.

from plug.

wkhere avatar wkhere commented on September 23, 2024

Wow that was fast :DD kudos

from plug.

wkhere avatar wkhere commented on September 23, 2024

@josevalim FYI reporting that this error still exists in 1.0.0-rc1

from plug.

ericmj avatar ericmj commented on September 23, 2024

@herenowcoder Have you tried removing _build? @edgurgel had the same issue on 1.0.0-rc1 and that seemed to fix it.

from plug.

josevalim avatar josevalim commented on September 23, 2024

Ping, is this still an issue?

from plug.

wkhere avatar wkhere commented on September 23, 2024

unfortunately had no time to check. I've had this on heroku where I suppose _build is cleaned.

from plug.

ericmj avatar ericmj commented on September 23, 2024

@herenowcoder _build is not cleaned on heroku unless you set always_rebuild=true or explicitly clear the cache.

from plug.

wkhere avatar wkhere commented on September 23, 2024

@ericmj thx for the info.

@josevalim I totally don't have time to reproduce the conditions :( - combination of Elixir & deps which led to this.

What I can to is to prepare carefully for some regression next time if it happens, though I hope the deps issues are over.

And btw, Congrats for 1.0.

from plug.

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.