Closed FLeven closed 1 year ago
I don't think the solution is a valid one. The issue is publishing to your Nexus and I feel you should concentrate on resolving that issue rather than removing the required module from the manifest which would affect everybody.
Of cause, I only offered a dirty workaround for the problem. I an not sure if it is exclusively related to nexus, as powershellget is throwing the error.
@FLeven This is likely because BuildHelpers
is not published to your Nexus repository. Publish-Module
will verify that any modules listed in RequiredModules
are available in the repository you're deploying to.
I need to publish the module to a private nexus repo and get an error:
Expected Behavior
save-module publish-module
Current Behavior
Publish-Module
Workaround
Remove the required modules from the psd1 file
RequiredModules = @( @{ModuleName = 'BuildHelpers'; ModuleVersion = '2.0.16'} @{ModuleName = 'Pester'; ModuleVersion = '5.3.1'} @{ModuleName = 'platyPS'; ModuleVersion = '0.14.2'} @{ModuleName = 'psake'; ModuleVersion = '4.9.0'} )
Steps to Reproduce (for bugs)
save-module publish-module
Your Environment
Jenkins-agent running PowerShell 5.1 in Windows Docker Server Core container