Skip to content

Cannot reference specific version of prerelease #132

@avalery

Description

@avalery

Let's stay I published a module named MyModule with a prerelease version 1.2.3-alpha, and tried to use it as a dependency using this configuration:

@{
    'MyModule' = @{
        Name = 'MyModule'
        Version = '1.2.3-alpha'
        Parameters = @{
            AllowPrerelease = $true
        }
    }
}

If I call Invoke-PSDepend "requirements.psd1" -Install -Force -Import to download them and import them automatically, I got an error when PSDepend triggers Import-Module, because it gives "1.2.3-alpha" and Import-Module call only accept "1.2.3".

Isn't possible in PSDepend to adapt the code: if the module is a prerelease, trigger Import-Module with the version number without the prerelease "tag"?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions