Closed ChrisLynchHPE closed 6 years ago
@ChrisLynchHPE If the specified module dependencies are available on the PSGallery, it is not required to list them in ExternalModuleDependencies entry --> https://github.com/HewlettPackard/POSH-HPOneView/blob/e630e6de9dbaebc3f64b25753202bb685beb5820/HPOneView.400.psd1#L140 .
A module should be listed in ExternalModuleDependencies only when it is not available on the PSGallery.
Okay, so I'll remove the External Module Dependencies private data tag. Is that all I need to do?
@ChrisLynchHPE Correct, no additional changes are required.
Thanks @bmanikm.
Apologies for what may be a n00b question. I have a module published in the PSGallery that I have defined
RequiredModules
in the assembly file. However, the dependencies are not listed in PSGallery listing of my module. When a user attempting to useInstall-Module
it fails with a dependency missing error. I see quite a number of Azure modules published in PSGallery, but looking at their included module assembly files show they are not using theRequiredModules
attribute. What am I missing?Expected Behavior
To publish a PowerShell module to the PSGallery with listed external module dependencies (note, not binary dependencies.)
Your Environment