You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fixed
Invoke-ModuleInstall now imports the target module with -Global. Because
the function is itself a module export, a plain Import-Module placed the
installed module's commands in this module's session state rather than the
caller's, so callers silently relied on command auto-loading. When two
installed modules export the same command (e.g. a renamed/split module
leaves an old copy behind), auto-load resolved to the alphabetically-first
one - which could be the stale version. -Global makes the explicit import
authoritative in the caller's scope, so resolution is deterministic.