How do I properly rename a module ending in *-master.zip?

Tagged: , ,

This topic contains 4 replies, has 2 voices, and was last updated by Profile photo of TyMac711 TyMac711 4 months, 3 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #38432
    Profile photo of TyMac711
    TyMac711
    Participant

    I have found several modules I would like to use with DSC – eg;

    PackageManagementProviderResource-master.zip

    https://github.com/PowerShell/PackageManagementProviderResource

    The zip offered to download ends in -master.zip instead of the version name... which I cannot find in the package anywhere. Don't I need to rename this package with the version appended and then create a checksum – or has this changed? ..or maybe I'm just lost!? 🙂

    #38442
    Profile photo of Arie H
    Arie H
    Participant

    The version will be inside the .psd1 file that is the manifest of the module. It will be under ModuleVersion.

    You still need that module zipped with the version appended and to create a checksum and send them both to the pull server.

    #38447
    Profile photo of TyMac711
    TyMac711
    Participant

    Ok thanks! What does the zip contents folder structure look like? Should it be:

    PackageManagementProviderResource-1.0.1.11zip > PackageManagementProviderResource >
    1.0.1.11

    Each of those folders?

    #38450
    Profile photo of Arie H
    Arie H
    Participant

    Based on

    https://msdn.microsoft.com/en-us/powershell/dsc/pullserver

    Towards the bottom,in the section called DSC resource module package format, you should be removing the version folder.

    Note that you downloaded a repository from github. That's why you had -master at the end of the file name to denote the master branch. Normally you would get the DSC resource package from the PowerShell Gallery, once you do get it from there, if you look at the folder structure you'll see it correct, but if you want to get it from github for the purposes of delivering it via the pull server to the nodes, you'll have to do those extra steps.

    Hope this helped 🙂

    #38451
    Profile photo of TyMac711
    TyMac711
    Participant

    Very useful!!! Thank you very much!!!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.