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

`Get-ModuleFastPlan`: Fails when resolving Pester 4.10.1 #19

Closed johlju closed 8 months ago

johlju commented 8 months ago

When calling with the following:

@('Pester@4.10.1') | Get-ModuleFastPlan

It fails with:

Get-ModuleFastPlan: Exception calling "GetResult" with "0" argument(s): "Response status code does not indicate success: 501 (Not Implemented)."

But calling this do work:

@('PSPKI@3.7.2') | Get-ModuleFastPlan

[!NOTE] Using the code in main branch.

johlju commented 8 months ago

Possible related issue: https://github.com/JustinGrote/ModuleFast/issues/20

JustinGrote commented 8 months ago

Need to make sure you're using preview gallery. Current gallery has prefetch issues for older releases. image

On next release preview will get promoted to prod and make these go away.

johlju commented 8 months ago

I'm using preview gallery, but will double check (it is set with a default parameter). It's just Get-ModuleFastPlan that has this issue. Using Install-ModuleFast it works for some reason. But will use verbose and debug to see what it reports. Didn't think of that initially.

johlju commented 8 months ago

I can't reproduce now, so it must be as you said that I didn't go against the preview gallery, must have been that for some reason I tried in a new session without the default parameter available. Sorry. Closing this. :)