Comments (7)
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.
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.
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.
Any news?
from heroku-buildpack.
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:
- 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
- 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
- Create an Aptfile to install a few things:
cat <<EOF >Aptfile clang libssl1.0 libssl1.0-dev EOF
- Set the active stack to heroku-18:
heroku stack:set heroku-18
- Commit and deploy.
git commit -am "Add Aptfile" git push heroku master
from heroku-buildpack.
@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.
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)
- No such file or directory HOT 1
- Update buildpack for Swift 4 and newer clang
- Fix ubuntu version detection
- xz:(stdin): File format not recognized HOT 5
- swiftenv fails on heroku push HOT 4
- Heroku build fails HOT 4
- Support Package.swift symlink? HOT 5
- Error while using swift 5 HOT 2
- No such module 'CommonCrypto' HOT 2
- Migrate away from swiftenv HOT 1
- Building failing on release script HOT 1
- Heroku build failed to compile Swift app HOT 1
- Support for Heroku-20 stack HOT 3
- updated to latest buildpack and heroku-20: No available connections on this event loop, creating a new one [database-id: psql] HOT 2
- Support for resources
- Bundle.module does not find resources after deployment HOT 8
- Heroku-22 stack HOT 4
- Support Ubuntu 23.10 and 24.04 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-buildpack.