PowerShell/Polaris

Consider removing ScriptsToProcess from manifest

bgelens opened this issue · 2 comments

Polaris Bug Report

The use of ScriptsToProcess pollutes the imported modules and doesn't allow for clean removal by typing rmo polaris

Description of the bug

image

To remove everything imported I have to rmo polaris* as well as rmo MimeTypes.Class and rmo New-ScriptblockCallback

When ScriptsToProcess is removed, the module seems to function fine and only Polaris module is imported.

image

image

image

Expected behavior

Have only one module imported and allow it to be removed in one go as well.

Version Information


Run the following script and copy and paste the results here:

NameVersion
Polaris0.2.0
PlatformSerializationVersionPSEditionOSPSCompatibleVersionsPSRemotingProtocolVersionPSVersionWSManStackVersionGitCommitId
Win32NT1.1.0.1CoreMicrosoft Windows 10.0.18290 1.0.-1.-1, 2.0.-1.-1, 3.0.-1.-1, 4.0.-1.-1, 5.0.-1.-1, 5.1.10032.0, 6.1.1.-12.36.1.13.06.1.1

I believe this is done so that the types are exported. Can you try running (Start-Polaris).GetType() with and without the ScriptsToProcess?

Works ok for me

image