mirror of
https://github.com/inspec/inspec
synced 2024-11-27 07:00:39 +00:00
Merge pull request #4476 from inspec/zenspider/gem_pathing
Use File.realpath in Loader#plugin_gem_path to resolve all symlinks.
This commit is contained in:
commit
577521296c
1 changed files with 3 additions and 1 deletions
|
@ -123,7 +123,9 @@ module Inspec::Plugin::V2
|
|||
require "rbconfig"
|
||||
ruby_abi_version = RbConfig::CONFIG["ruby_version"]
|
||||
# TODO: why are we installing under the api directory for plugins?
|
||||
File.join(Inspec.config_dir, "gems", ruby_abi_version)
|
||||
base_dir = Inspec.config_dir
|
||||
base_dir = File.realpath base_dir if File.exist? base_dir
|
||||
File.join(base_dir, "gems", ruby_abi_version)
|
||||
end
|
||||
|
||||
# Lists all gems found in the plugin_gem_path.
|
||||
|
|
Loading…
Reference in a new issue