From c12b9d53aa4068dec9f4fe4c7dc236b222e637e4 Mon Sep 17 00:00:00 2001 From: Tom Duffield Date: Thu, 27 Jul 2017 11:47:29 -0500 Subject: [PATCH] Update Gemfile.lock via sed rather than bundler Signed-off-by: Tom Duffield --- .expeditor/update_version.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.expeditor/update_version.sh b/.expeditor/update_version.sh index 3c4de3fcf..501d24b23 100644 --- a/.expeditor/update_version.sh +++ b/.expeditor/update_version.sh @@ -8,8 +8,10 @@ set -evx sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"$(cat VERSION)\"/" lib/chef-dk/version.rb -# Update the version inside Gemfile.lock -bundle update chef-dk +# There is a bug (https://github.com/bundler/bundler/issues/5644) that is preventing +# us from updating the chef-dk gem via `bundle update` or `bundle lock --update`. +# Until that is addressed, let's replace the version using sed. +sed -i -r "s/chef-dk\s\(.+\)$/chef-dk \($(cat VERSION)\)/" Gemfile.lock # Once Expeditor finshes executing this script, it will commit the changes and push # the commit as a new tag corresponding to the value in the VERSION file.