diff --git a/lib/inspec/profile_context.rb b/lib/inspec/profile_context.rb index 2bbc1a806..cfc681a10 100644 --- a/lib/inspec/profile_context.rb +++ b/lib/inspec/profile_context.rb @@ -116,6 +116,7 @@ module Inspec lib_prefix = 'libraries' + File::SEPARATOR autoloads = [] + libs.sort_by! { |l| l[1] } # Sort on source path so load order is deterministic libs.each do |content, source, line| path = source if source.start_with?(lib_prefix)