-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Goal:
When downloading buildpacks from heroku, always download the latest version.
Overview
Instead of editing the file install-buildpacks everytime heroku creates a new version, I think it is safe to assume the new version is stable enough for us to use it. This approach will reduce maintenance burden.
If a given user wants to lock the buildpack version, it could do it by setting the BUILD_PACK env with the version:
deis config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-php#v149
The same way I had to do in order to make example-php work again for me.
I don't know when this code runs. If it runs once, this approach wont be useful. But if it runs every time, so we will always be updated with heroku builds.
Code Changes
The script install-buildpacks would fetch the latest tag and use it. It be something similar to this code instead of hardcoding the version:
https://github.com/gr1d-io/slugbuilder/blob/master/rootfs/builder/install-buildpacks
Testing
I am running the make tests right now