RamblingCookieMonster / BuildHelpers

Helper functions for PowerShell CI/CD scenarios
MIT License
215 stars 47 forks source link

Build failure when RequiredModules is utilized in the Module Manifest #78

Closed jpsider closed 5 years ago

jpsider commented 5 years ago

Howdy! I have to call uncle on troubleshooting why this is happening.

I have (or want to have) my module have a 'RequiredModules' property in the Module Manifest.

RequiredModules   = @(
    @{ 'ModuleName' = 'PowerLumber'; 'RequiredVersion' = '3.0.2'}
)

Whenever I un-comment the lines in my Manifest, my build on AppVeyor fails with an error that I cannot determine the reason/source, nor can I reproduce it locally. I have to caveat that... I can reproduce the error when the '.psm1' does not exist, but I do not get an error during the build that the '.psm1' could not be built. It's specific to the RequiredModules section, just can't put my finger on it yet.

Failed Build Pass Build Manifest File - Lines 54-56

I guess this also brings up the question, is anyone else doing this? Should I be setting up "dependent" or "required" Modules differently?

Any help/feedback is appreciated!

jpsider commented 5 years ago

Well, I did more research, apparently I need to find a different way to accomplish what I thought should be a simple task. :-( #notYourIssue https://github.com/PowerShell/PowerShell/issues/3663