Skip to content

Proposal: Always get the latest buildpack from heroku #11

@tolstenko

Description

@tolstenko

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions