Description
I don't use (or even have) the Initialize.ps1, and it makes the psm1 fail.
Steps to Reproduce
New module from templace, no classes, no mkdocs, with gitlab CI.
Current Behavior
When trying to load the module it fails because it cannot dot source the initialize.ps1
Expected behavior
No error on module import
Possible Solution
Test-path initialize.ps1 in the psm1 before dot-sourcing it.
Environment
Module version used: 3.1, freshly updated
Operating System and PowerShell version: Win10 20H2 and PS 7.1
PS : I tried finding that code on GitHub but I think it hasn't been pushed here. Is that possible? The only reference to that line is on the powershell gallery :(
Description I don't use (or even have) the Initialize.ps1, and it makes the psm1 fail.
Steps to Reproduce New module from templace, no classes, no mkdocs, with gitlab CI.
Current Behavior When trying to load the module it fails because it cannot dot source the initialize.ps1
Expected behavior No error on module import
Possible Solution Test-path initialize.ps1 in the psm1 before dot-sourcing it.
Environment
PS : I tried finding that code on GitHub but I think it hasn't been pushed here. Is that possible? The only reference to that line is on the powershell gallery :(
Thanks a lot for your work!