Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get plan for prerelease version for individual modules #7

Closed
johlju opened this issue Aug 22, 2023 · 1 comment · Fixed by #13
Closed

Get plan for prerelease version for individual modules #7

johlju opened this issue Aug 22, 2023 · 1 comment · Fixed by #13

Comments

@johlju
Copy link
Contributor

johlju commented Aug 22, 2023

I would like to see that it would be possible to specify that Get-ModuleFastPlan should fetch the latest prerelease version for an individual module.

@('Pester', @{ModuleName='DnsServerDsc';Prerelease = $true}) | Get-ModuleFastPlan -Update

which would result in (latest version as of today):

  • DnsServerDsc v3.0.1-preview0002
  • Pester 5.5.0

Passing PreRelease to the command Get-ModuleFastPlan does not seem to have any effect of fetching latest preview version either.

@JustinGrote
Copy link
Owner

JustinGrote commented Dec 15, 2023

Since modulespecification has no native support for this, I've decided to use the syntax of adding a ! to either the beginning or end of the modulename. While ! is a valid filename character, it is not a valid nuget package character, and thus a module with this name would not be published to an nuget gallery. I'm OK with the edge case that this maybe would work with a filesystem package, and I'm going to put that into unsupported territory.

I will probably add that Prelease property you suggested for the hashtable cast syntax as well.

Usages

Install-ModuleFast 'Az!'  -WhatIf
@('Pester', @{ModuleName='DnsServerDsc';Prerelease = $true}) | Install-ModuleFast -WhatIf
@('Pester', @{ModuleName='!DnsServerDsc'}) | Install-ModuleFast -WhatIf
Install-ModuleFast 'PrereleaseTest!<0.0.2' -WhatIf

EDIT: Prerelease = true will come later with manifest support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants