summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-05-03 12:29:15 -0700
committerJohn McCrae <john.mccrae@progress.com>2021-05-14 08:53:48 -0700
commit163c714611344f93164eac67222dbe8f9f80a0cc (patch)
tree49189207a81a845b0b8d86f18b6e69b1e85b168e
parenta885d628a1bfdac8278583f82093832f8559647c (diff)
downloadchef-163c714611344f93164eac67222dbe8f9f80a0cc.tar.gz
Make sure knife gemfile actually installs knife
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--knife/Gemfile7
1 files changed, 7 insertions, 0 deletions
diff --git a/knife/Gemfile b/knife/Gemfile
index d53086e8d8..31b06e94f8 100644
--- a/knife/Gemfile
+++ b/knife/Gemfile
@@ -1,5 +1,12 @@
source "https://rubygems.org"
+# Note we do not use the gemspec DSL which restricts to the
+# gemspec for the current platform and filters out other platforms
+# during a bundle lock operation. We actually want dependencies from
+# both of our gemspecs. Also note this this mimics gemspec behavior
+# of bundler versions prior to 1.12.0 (https://github.com/bundler/bundler/commit/193a14fe5e0d56294c7b370a0e59f93b2c216eed)
+gem "knife", path: "."
+
group(:development, :test) do
gem "cheffish", ">= 14" # testing only , but why didn't this need to explicit in chef?
gem "webmock" # testing only