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
Do you want to request a feature or report a bug?
Incompatibility.
What is the current behavior?
PowerShell Core 6 doesn't include the standard PSModulePath, instead it can be added using the WindowsPSModulePath module and Add-WindowsPSModulePath.
If you do this though and Import-Module PoshRSJob then the path gets lost. This doesn't appear to happen with other modules I tested.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
If you uncomment those (which obviously breaks everything) it will load without overwriting the module path. But only if you've modified it using Add-WindowsPSModulePath. If you modified it manually then the path isn't lost.
I'm not sure why the two are different though.
codykonior
changed the title
Import-Module PoshRSJob overwrites $env:PSModulePath on PS Core 6.0.1
Import-Module PoshRSJob overwrites $env:PSModulePath on PS Core 6.0.1 due to Add-WindowsPSModulePath incompatibility
Feb 24, 2018
codykonior
added a commit
to codykonior/PoshRSJob
that referenced
this issue
Feb 24, 2018
Do you want to request a feature or report a bug?
Incompatibility.
What is the current behavior?
PowerShell Core 6 doesn't include the standard PSModulePath, instead it can be added using the WindowsPSModulePath module and Add-WindowsPSModulePath.
If you do this though and Import-Module PoshRSJob then the path gets lost. This doesn't appear to happen with other modules I tested.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
The first import works (assuming it's on your path). The second fails because it won't be on the path any longer.
Which versions of Powershell and which OS are affected by this issue? Did this work in previous versions of our scripts?
The text was updated successfully, but these errors were encountered: