Git Product home page Git Product logo

Comments (7)

vzsg avatar vzsg commented on September 26, 2024 1

Oh hey, it seems llvm.org now hosts a build of clang for Ubuntu 18.04! I'll play around with it, and if we're lucky, the buildpack can be self-reliant again.

from heroku-buildpack.

vzsg avatar vzsg commented on September 26, 2024

Your assumption is close, but unfortunately not enough. The buildpack, as it is now, tries to download clang from llvm.org - where 18.04 builds are not available, and we need a different strategy.

I have previously found a working solution: we can install a proper version of clang using the heroku apt buildpack. The ext-clang branch here is compatible with that.

from heroku-buildpack.

vzsg avatar vzsg commented on September 26, 2024

I was thinking of changing the buildpack to work as it previously did on the 14 and 16 stacks, and print new instructions on 18 to set up the other buildpack.

from heroku-buildpack.

scinfu avatar scinfu commented on September 26, 2024

Any news?

from heroku-buildpack.

vzsg avatar vzsg commented on September 26, 2024

Not really. But if you can't wait, here's a working guide (quoting myself from the Vapor Discord server).


So assuming you have an already set up project on Heroku (with only the vapor buildpack), do the following:

  1. Change the vapor buildpack to use the ext-clang branch, where I have removed the script that installs clang.
    heroku buildpacks:set https://github.com/vapor-community/heroku-buildpack.git#ext-clang
  2. Add the apt buildpack at the first index (executed before the vapor buildpack):
    heroku buildpacks:add --index 1 https://github.com/heroku/heroku-buildpack-apt
  3. Create an Aptfile to install a few things:
    cat <<EOF >Aptfile
    clang
    libssl1.0
    libssl1.0-dev
    EOF
  4. Set the active stack to heroku-18:
    heroku stack:set heroku-18
  5. Commit and deploy.
    git commit -am "Add Aptfile"
    git push heroku master

from heroku-buildpack.

marekpridal avatar marekpridal commented on September 26, 2024

@vzsg after upgrading to Heroku 18 using your guideline Vapor app bumped from 10 MB to 115 MB 😅 it's probably caused by installing

clang
libssl1.0
libssl1.0-dev

using Aptfile 🙂

from heroku-buildpack.

vzsg avatar vzsg commented on September 26, 2024

Hmm. That's bad news. libssl1.0 shouldn't be necessary anymore, but we need to find a way to install clang without it getting into the final slug.

from heroku-buildpack.

Related Issues (19)

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.