Closed kamennikolov closed 1 year ago
@kamennikolov thanks for bringing this to our attention, we'll investigate this and get back to you by later this week.
@anamnavi is there any update on this?
@kamennikolov sorry for the late response, we are still investigating into this and will have a response by end of the week. Are you trying to publish a new version of this package (that has 5000+ cmdlets)?
Yes. The current version of the module has a little over 4000 cmdlets and the new one that I'm trying to upload has more than 5000.
@kamennikolov thanks for verifying, we'll have a fix out for this after the holidays. We have a deployment freeze until after the holidays, thanks for your patience with this!
Thank you. I'll be expecting the fix after the holidays. Let me know when it's ready, so that I can test an verify it.
@kamennikolov we've had some discussion about this and wondering if you can explain why there are so many cmdlets within a single module? it would seem that there could be a practical user experience problem having so many individual cmdlets? We can certainly raise the limit, but want to make sure that would be the right decision.
The module is automatically generated out of a REST API spec and generates one cmdlet per API operation. Furthermore, it also auto-generates cmdlets to help users build the complex input types. And since the API is quite big the total number of cmdlets is more than 5000. To ensure cmdlet discoverability we have a dedicated cmdlet that takes the REST API path and HTTP method as input and returns the cmdlet that corresponds to this API operation.
@kamennikolov appreciate the details, we also had guessed the cmdlets were being generated from REST APIs. For now, we're going to look into raising the limits to unblock you. However, we also recommend considering breaking up this module into multiple dependent modules and keeping the name of this one as a meta-module for ease of install if you intend to continue to grow the number of cmdlets.
@kamennikolov We're currently verifying the fix for this and will have it out soon
Great. Thank you.
Hi @anamnavi is there any update on this issue?
@kamennikolov Sorry for the delay, this fix is now live, thanks for the patience :)
Prerequisites
Steps to reproduce
We have an existing module (VMware.Sdk.Nsx.Policy) that recently went above 5000 cmdlets. We have all the cmdlets listed in the CmdletsToExport section in the psd1 file in order for the auto-import feature to work properly. However we are unable to publish this module in the PowerShell gallery. The error message we're getting is: Publish-PSResource: Repository 'PSGallery': Response status code does not indicate success: 500 (You module metadata exceeds allowed size of 5000 nodes.).
Expected behavior
Actual behavior
Error details
Environment data
Visuals
No response