Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
promote PSGallery including all depedencies
-
Hello,
is it possible to promote a powershell package from PSGallery to an internal repo including all depedencies?
wkr
Dominik
-
Hi @d-gleissner_8620 ,
The best way to handle this scenario is with two feeds (
unapproved
andapproved
packages); install from theunapproved
in your development environment, and then to promote packages (in bulk) from theunapproved
to theapproved
feed.Unfortunately, it's not feasible for a tool like ProGet to handle dependency resolution; a dependency is specified as a range (for example, PackageA requires PackageB 3.2 or later), and it's up to the environment (i.e. the client doing the installation, PSGet) to determine which dependencies are currently available and not available.
For example, if you already had "PackageB 3.3" installed, then PowerShell would not install it, even if "Package B 3.4" is the latest version. It gets even more complicated when it comes to platform dependencies and all that. Ultimately, ProGet can't have such environmental knowledge.
hoep that helps!
Cheers,
Alana