From 2cb5f26998da99c23ef799536b48333fae7ccff8 Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Mon, 5 Aug 2019 21:47:44 -0700 Subject: [PATCH] Rearrange a require in metadata.rb to break circularity is load. For some reason this works fine in linux & osx but fails on windows but only when some things are loaded in isolation. *shrug* --- lib/inspec/metadata.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/inspec/metadata.rb b/lib/inspec/metadata.rb index 20a33697c..b8fcf4183 100644 --- a/lib/inspec/metadata.rb +++ b/lib/inspec/metadata.rb @@ -64,6 +64,7 @@ module Inspec end def supports_platform?(backend) + require "inspec/resources/platform" # break circularity in load backend.platform.supported?(params[:supports]) end