mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
Sort library files before loading them so load order is predictable (#2475)
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
This commit is contained in:
parent
dee94b6416
commit
0d5f6e0a7e
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue