JustinGrote / ModuleFast

A "fast and loose" way to install modules from Powershell Gallery quickly. Meant for CICD, not production
Other
77 stars 5 forks source link

Dependency Warnings #2

Open JustinGrote opened 1 year ago

JustinGrote commented 1 year ago

While PowerShell allows to you install multiple versions of a module side-by-side, if that module contains conflicting assemblies, we may want to warn that assembing binding redirect will occur and instruct the user the order in which to load their modules if they choose to use them simultaneously. This will be output as a warning. We only want to do this if the module is a binary module (how to detect) and two versions are found to have incompatible ranges (e.g. one requires maximum of 3.0 and another is unbounded and there is a 4.0 release out.

JustinGrote commented 8 months ago

The only two ways to realistically do this are:

  1. Search the module folder for assemblies (low performance)
  2. Match on RequiredAssemblies (doesn't work if the user loads assemblies via .psm1)