chocolatey / choco

Chocolatey - the package manager for Windows
https://chocolatey.org
Other
10.22k stars 897 forks source link

Add option to disable extensions #2775

Open TheCakeIsNaOH opened 2 years ago

TheCakeIsNaOH commented 2 years ago

Is Your Feature Request Related To A Problem? Please describe.

If someone has an issue with a package automation script not behaving correctly, there is not a good way to ensure that it is not being caused by something in a module from a .extension package.

Describe The Solution. Why is it needed?

A commandline switch could be added to disable loading of PowerShell modules from extensions. This would allow a "blank slate" for the package automation script, to help narrow down what is going on.

Additional Context.

Discussion should be had around if the licensed extension should be included in this, due to the licensed cmdlets. Potentially it should only be disabled by disabling all licensed functionality with #2774?

Related Issues

N/A

TheCakeIsNaOH commented 2 months ago

Now that other .dll extensions can be added as well, this should be expanded to cover those extension as well.