Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Update Gemfile.lock using sed rather than bundler #1334

Merged
merged 1 commit into from
Jul 28, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .expeditor/update_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.