Skip to content

Commit

Permalink
Add back a few gems that are required (and document why)
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Duffield <tom@chef.io>
  • Loading branch information
tduffield committed Feb 10, 2017
1 parent 57c0043 commit 845cc57
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ source "https://rubygems.org"
gem "chef", path: "."

gem "chef-config", path: File.expand_path("../chef-config", __FILE__) if File.exist?(File.expand_path("../chef-config", __FILE__))
# Ensure that we can always install rake, regardless of gem groups
gem "rake"
gem "bundler"
gem "cheffish" # required for rspec tests

group(:omnibus_package) do
gem "appbundler"
Expand Down
1 change: 1 addition & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ DEPENDENCIES
chef-config!
chef-provisioning
chef-sugar
cheffish
chefspec
chefstyle!
cucumber (>= 2.4.0)
Expand Down
5 changes: 4 additions & 1 deletion acceptance/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,7 @@ gem "kitchen-inspec"
gem "test-kitchen"
gem "winrm-elevated"
gem "berkshelf"
gem "mixlib-install"

# Pin to 1.2.3 because current mixlib-install has a problem where unstable
# packages are not always immediately available via the omnitruck API.
gem "mixlib-install", "1.2.3"
5 changes: 2 additions & 3 deletions acceptance/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,10 @@ GEM
mixlib-authentication (1.4.1)
mixlib-log
mixlib-config (2.2.4)
mixlib-install (2.1.12)
mixlib-install (1.2.3)
artifactory
mixlib-shellout
mixlib-versioning
thor
mixlib-log (1.7.1)
mixlib-shellout (2.2.7)
mixlib-versioning (1.1.0)
Expand Down Expand Up @@ -249,7 +248,7 @@ DEPENDENCIES
kitchen-ec2
kitchen-inspec
kitchen-vagrant
mixlib-install
mixlib-install (= 1.2.3)
rake
test-kitchen
windows_chef_zero
Expand Down
6 changes: 6 additions & 0 deletions tasks/dependencies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
system("#{File.join(Dir.pwd, "ci", "dependency_update.sh")}")
end

desc "Force update (when adding new gems to Gemfiles)"
task :force_update do |t, rake_args|
FileUtils.rm_f(File.join(Dir.pwd, ".bundle", "config"))
system("#{File.join(Dir.pwd, "ci", "dependency_update.sh")}")
end

# Update all dependencies to the latest constraint-matching version
desc "Update all dependencies. dependencies:update to update as little as possible (CI-only)."
task :update_ci => %w{
Expand Down

0 comments on commit 845cc57

Please sign in to comment.