summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-05-03 12:29:15 -0700
committerTim Smith <tsmith@chef.io>2021-05-03 12:29:15 -0700
commit81a50711ccfc977154b86fe61cb94b25a9b3e111 (patch)
tree69573bb4b867bce1ed7c64dfa9da9b018815179e
parentdd120f0bd1030476c6c725ef6bbf58d6ca5b9790 (diff)
downloadchef-81a50711ccfc977154b86fe61cb94b25a9b3e111.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