summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/cookbook')
-rw-r--r--lib/chef/cookbook/syntax_check.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/chef/cookbook/syntax_check.rb b/lib/chef/cookbook/syntax_check.rb
index d656f96ebd..40ba070796 100644
--- a/lib/chef/cookbook/syntax_check.rb
+++ b/lib/chef/cookbook/syntax_check.rb
@@ -42,6 +42,13 @@ class Chef
# value of Chef::Config[:syntax_check_cache_path] is used; if that
# value is not configured, the value of
# Chef::Config[:cache_options][:path] is used.
+ #--
+ # history: prior to Chef 11, the cache implementation was based on
+ # moneta and configured via cache_options[:path]. Knife configs
+ # generated with Chef 11 will have `syntax_check_cache_path`, but older
+ # configs will have `cache_options[:path]`. `cache_options` is marked
+ # deprecated in chef/config.rb but doesn't currently trigger a warning.
+ # See also: CHEF-3715
def initialize(cache_path=nil)
@cache_path = cache_path || Chef::Config[:syntax_check_cache_path] || Chef::Config[:cache_options][:path]
@cache_path_created = false