-
-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
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
Labels
No labels