PS> Get-Variable PSGetPath -ValueOnly
Get-Variable: Cannot find a variable with the name 'PSGetPath'.
Error details
No error.
The variable $PSGetPath was added to PowerShellGet v2 in https://github.com/PowerShell/PowerShellGetv2/pull/486. The variable is never used by the modules, it is provided to give users information about the location of the Modules and Scripts folder for each scope.
PSResourceGet exports the variable in the module manifest, but nowhere in code does it set the value.
Prerequisites
Steps to reproduce
In a new session import PSResourceGet but don't import PowerShellGet v2. Examine the value of
$PSGetPath
.Expected behavior
Actual behavior
Error details
No error.
The variable
$PSGetPath
was added to PowerShellGet v2 in https://github.com/PowerShell/PowerShellGetv2/pull/486. The variable is never used by the modules, it is provided to give users information about the location of theModules
andScripts
folder for each scope.PSResourceGet exports the variable in the module manifest, but nowhere in code does it set the value.
Environment data
Visuals
No response