Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Update-ModuleManifest complains when adding an invalid entry value, yet still updates the manifest. #8389
This is a regression from Windows PowerShell.
I've only tried with one entry,
Steps to reproduce
# Important: create the manifest *without* -RootModule New-ModuleManifest tmp.psd1 # Try to update (add) the RootModule entry with an invalid value. Update-ModuleManifest tmp.psd1 -RootModule '\/' '---' # Extract the now-current RootModule entry. Select-String ^RootModule tmp.psd1
That is, an error should be reported, and the manifest file should remain unaltered, i.e., still have no
That is, the manifest file was unexpectedly still updated with the invalid entry.