Skip to content

[Question] Publish-PsResource and the versioning of a module manifest #1346

Open
@LaurentDardenne

Description

@LaurentDardenne

Question

For a local repository Publish-PSResource must it respect the versioning indicated in this doc ?

With Microsoft.PowerShell.PSResourceGet v0.5.23 this is not the case :

Get-PSResourceRepository

Name        Uri                                                      Trusted Priority
----        ---                                                      ------- --------
PSGallery   https://www.powershellgallery.com/api/v2                 False   50
PSRepoLocal file:///C:/Users/Laurent/AppData/Local/Temp/PSRepoLocal/ True    50


Publish-PSResource -Path C:\Temp\Gallery\String\1.1.0.1 -Repository PSRepoLocal -verbose
#ok no error

dir C:\Users\Laurent\AppData\Local\Temp\PSRepoLocal


    Répertoire : C:\Users\Laurent\AppData\Local\Temp\PSRepoLocal


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----        07/08/2023     13:52          10669 String.1.1.0--beta.nupkg
-a----        07/08/2023     12:17           8885 String.1.1.0-prerelease.nupkg
-a----        07/08/2023     12:18           8889 String.1.1.0.1-prerelease.nupkg

NOTE :
If I use Publish-Module and Publish-PSResource for the same local repository, with Install-Module I cannot install modules that do not respect versioning :
image

But Find-Module considering in the result the packages which do not respect versioning :
image

Proposed technical implementation details (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions