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

Commit

Permalink
Merge pull request #1637 from chef/SHACK-304/sed
Browse files Browse the repository at this point in the history
[SHACK-304] Expeditor version update needs to only update the ChefDK version
  • Loading branch information
tyler-ball authored Aug 1, 2018
2 parents a56aa76 + b73611f commit bf09280
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .expeditor/update_version.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ sed -i -r "s/^(\s*)VERSION = \".+\"/\1VERSION = \"$(cat VERSION)\"/" lib/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
# We only replace the first instance because chef-apply now also has ChefDK as a
# dependency, and we don't want to replace that constraint.
sed -i -r "0,/chef-dk\s\(.+\)$/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.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ GEM
mime-types
chef-apply (0.1.18)
chef (>= 14.0)
chef-dk (3.1.7)
chef-dk (>= 3.0)
chef-telemetry
mixlib-cli
mixlib-config
Expand Down

0 comments on commit bf09280

Please sign in to comment.