mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
msft:8027609 Get-Module -List and Test-ModuleManifest import the the nested module dependencies into the current/global runspace.
This commit is contained in:
@@ -652,7 +652,11 @@ namespace Microsoft.PowerShell.Commands
|
||||
else if (Directory.Exists(rootedPath))
|
||||
{
|
||||
// Load the latest valid version if it is a multi-version module directory
|
||||
foundModule = LoadUsingMultiVersionModuleBase(rootedPath, importModuleOptions, out found);
|
||||
foundModule = LoadUsingMultiVersionModuleBase(rootedPath,
|
||||
ManifestProcessingFlags.LoadElements |
|
||||
ManifestProcessingFlags.WriteErrors |
|
||||
ManifestProcessingFlags.NullOnFirstError,
|
||||
importModuleOptions, out found);
|
||||
|
||||
if (!found)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user