Fix 1794 by handling if prerelease is supplied as boolean too#1843
Conversation
|
Maybe a new test and test module should be added? Like the test module by Justin Grote: Only Would be nice if |
|
We have a test prerelease module here that can be used for tests: https://www.powershellgallery.com/packages/testmodule99/1.0.0-beta2 |
|
We have some RequiredResource tests here: https://github.com/PowerShell/PSResourceGet/blob/master/test/InstallPSResourceTests/InstallPSResourceV2Server.Tests.ps1 could you add one or modify an existing one so that it's also checking a prerelease version? |
|
Sorry, I missed this comment or forgot it @alerickson. I added a test for it now. 😊 |
|
@alerickson @anamnavi: This one is ready for merge AFAIK, would be good to have in the v1.2 release. |
PR Summary
Install-PSResource -RequiredResourceFileignores theprereleasekey if set to$truein apsd1file #1794 by handle prelease if a boolean too.Tested like so:
PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.