diff --git a/CHANGELOG.md b/CHANGELOG.md index 48effa5f..2a56ff97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +* [#177](https://github.com/heroku/heroku-buildpack-static/pull/177) Fail the build early on unsupported stacks ## v4 (2019-09-18) diff --git a/bin/compile b/bin/compile index 6bdad80a..4effc6f7 100755 --- a/bin/compile +++ b/bin/compile @@ -8,6 +8,16 @@ cache_dir=$2 env_dir=$3 bp_dir=$(dirname $(dirname $0)) +case "${STACK}" in + cedar-14|heroku-16|heroku-18) + # Supported stack + ;; + *) + echo "Stack ${STACK} is not supported!" + exit 1 + ;; +esac + fetch_nginx_tarball() { local version="1.9.7" local tarball_file="nginx-$version.tgz"