Azure / autorest.powershell

AutoRest PowerShell Generator
MIT License
111 stars 76 forks source link

Keep consistent GUID after updating psd1. Fixed issue [#981] #1181

Closed vidai-msft closed 1 year ago

vidai-msft commented 1 year ago

AutoRest.PowerShell code has the logic to keep GUID reused when building a module. The issue was caused by the psd1 indent. It searched GUID in the psd1 to see if a GUID existed. When a psd1 is updated by Update-ModuleManifest, the 2 spaces before the GUID will be removed. Thus it considered there was no GUID generated.