-
Notifications
You must be signed in to change notification settings - Fork 69
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
ReleaseNotes not showing up after publishing module #38
Comments
I work with @islubin for this. Right now I try to add ReleaseNotes in our manifest psd1 as follows (as ReleaseNotes variable under PSData). Do I use the right syntax?
Our ReleaseNotes has multiple lines, so I put it as a string array with 3 elements. Will this show as 3 lines in PsGallery? |
@cywang16 in PowerShell we use `n to indicate a new line within a string, I wonder if using this would solve your issue, I am guessing that the release notes are not showing properly because it not expecting an array |
Update-ModuleManifest says -ReleaseNotes has type String[]. Also both of the following commands make the same result in ReleaseNotes in PSData:
|
@cywang16 You are correct, I just looked at where this is happening in the source code and it is making that conversion, I will mark this as a bug I am wondering if the issue might be happening in Publish-Module which makes the same conversion since it seems like Update-ModuleManifest is behaving as expected (by creating new lines), but the module is not publishing properly https://github.com/PowerShell/PowerShellGet/blob/6fc51a524110fbfccabec36af7c72ccc79ddc535/src/PowerShellGet/public/psgetfunctions/Publish-Module.ps1#L540 This was not a known issue so we will investigate, in the meantime I want to find a workaround for you, perhaps you could use the "Description" section in the manifest to publish the release notes? |
@SydneyhSmith really appreciate for checking this up. In my previous publish, psd1 manifest did not have ReleaseNotes. If I had included ReleaseNotes in psd1, does it display is PsGallery? What does it take to fix this from our side? Does it take another publish, or can we fix our psd1 is PsGallery? |
@cywang16 Yes, if you include ReleaseNotes in your publish it should display in the gallery, check out the PSGet module for an example From your side it does take a new publish to fix the psd1 in the PSGallery. |
Thanks @SydneyhSmith I want to keep the same version binary in PsGallery. If I publish the same version, with the updated psd1, will it overwrite what I have in PsGallery? Or will I get error for publishing the same/existing version module? |
@cywang16 you will need to increment the version number in order to update the psd1 |
We published a new version of our module and included release notes in the publish-module command. Those notes are not showing up associated with the module. Is this a known issue/is there a good workaround?
The text was updated successfully, but these errors were encountered: