From 04f9f4689be3c00386a411cdcd47283cb2ed054b Mon Sep 17 00:00:00 2001 From: timolehto Date: Thu, 13 Apr 2017 22:02:28 +0300 Subject: [PATCH 1/3] Get rid of cache --- bin/compile | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/bin/compile b/bin/compile index 3cf218d..5c9c09d 100755 --- a/bin/compile +++ b/bin/compile @@ -3,9 +3,6 @@ #pwd contains this buildpack build_dir="$1" #Contains the rails application, as it was checked out from GIT #E.g. /tmp/build_d237f460-a947-4e42-a7e1-61a3abcc27b6 -cache_dir="$2" #Contains the cahde dir. All the cached files are there and this -#or any later buildpacks may use it to fetch data. -#/app/tmp/cache #What does the /app folder containt, the old app? @@ -24,8 +21,6 @@ cache_dir="$2" #Contains the cahde dir. All the cached files are there and this echo "Old .bundle/config contents" cat "$build_dir/.bundle/config" -echo "Cache .bundle/config contents" -cat "$cache_dir/.bundle/config" echo "Purging .bundle folder if present" [ -d "$build_dir/.bundle" ] && rm -rf "$build_dir/.bundle" @@ -43,10 +38,4 @@ echo "Convert all aboslute path references in the bundle to refer the temporary find "$build_dir/.bundle/" -type f -exec sed -i "s /app/ $build_dir/ g" {} \; #sed "s /app/ /$build_dir/ g" "$build_dir/.bundle/*" -echo "Purging .bundle folder if present from cache as well" -[ -d "$cache_dir/.bundle" ] && rm -rf "$cache_dir/.bundle" -echo "Caching the changes.." -mkdir -p "$cache_dir" -cp -r "$build_dir/.bundle" "$cache_dir/.bundle" - #sed: can't read /tmp/build_c982f0d9-9b66-42e6-a875-0a681a1e47fb/.bundle/*: No such file or directory From 0ee8fe4c17b52d19ea028666c0e26983255aeb71 Mon Sep 17 00:00:00 2001 From: timolehto Date: Thu, 13 Apr 2017 22:32:30 +0300 Subject: [PATCH 2/3] Deprecation warning --- bin/detect | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/detect b/bin/detect index c7b9967..00a475e 100755 --- a/bin/detect +++ b/bin/detect @@ -1,5 +1,5 @@ #!/bin/sh - +echo 'WARNING YOU ARE USING DEPRECATED, OBSOLETE, UNMAINTANED BUILDPACK heroku-bundle-config!!!' # this pack is valid for apps with a .heroku-bundle directory in the root if [ -d "$1/.heroku-bundle" ]; then echo "Heroku Bundle Config" @@ -7,4 +7,4 @@ if [ -d "$1/.heroku-bundle" ]; then else echo "This app is not valid for Heroku Bundle Config buidpack." exit 1 -fi \ No newline at end of file +fi From 1f293ec877023d1d151111d48c36a87467954e99 Mon Sep 17 00:00:00 2001 From: timolehto Date: Thu, 13 Apr 2017 22:32:43 +0300 Subject: [PATCH 3/3] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 5de2faa..506339f 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ +DEPRECATED, OBSOLET, UNMAINTAINED +======================= +Bundler has had support for specifying any build configs via envs for a while now and all of this is fully supported with heroku so there is no need to use this buildpack anymore. See this heroku article for more information: +https://devcenter.heroku.com/articles/bundler-configuration#gem-build-configuration-settings + +Also apparently caching is nolonger supported the way it used to be and may be causing problems for users (as per this issue: +https://github.com/timolehto/heroku-bundle-config/issues/4). So I've simply removed those lines. I haven't been using this buildpack for anything for a long time and can't be bothered to really test this change... anyhow pls don't use this anymore. There will be no more commits to this repo. + Heroku buildpack: Heroku Bundle Config =======================