Closed cecheta closed 1 week ago
[!IMPORTANT] The "Needs: Triage :mag:" label must be removed once the triage process is complete!
[!TIP] For additional guidance on how to triage this issue/PR, see the BRM Issue Triage documentation.
[!WARNING] Tagging the AVM Core Team (@Azure/avm-core-team-technical-bicep) due to a module owner or contributor having not responded to this issue within 3 business days. The AVM Core Team will attempt to contact the module owners/contributors directly.
[!TIP]
- To prevent further actions to take effect, the "Status: Response Overdue š©" label must be removed, once this issue has been responded to.
- To avoid this rule being (re)triggered, the ""Needs: Triage :mag:" label must be removed as part of the triage process (when the issue is first responded to)!
Hey @cecheta, thanks for raising this. I'll take a look as soon as I can.
Hey @cecheta, sadly, I cannot reproduce the issue (locally). I wonder if it is something codespaces-specific. I've never used them so I don't know what makes them 'different'. Can you reproduce the issue locally? If not, I guess the next step would then be to try and debug the script in a Codespace instance. For that I'd need to find out how to use them first though š
I suspect it must have something to do with this line https://github.com/Azure/bicep-registry-modules/blob/0a48211fef4e81efe36a15c65e7e6f2efa395ad6/avm/utilities/tools/helper/Set-ModuleFileAndFolderSetup.ps1#L56 which may not perform the split in the way it's intended. Will also pull @ChrisSidebotham in as he may have an idea / has seen this before.
I couldn't reproduce this when running PowerShell locally, so this seems to only be an issue when using a devcontainer
Found the reason. One line in that code is hardcoded to Windows. Will open a PR to fix
Check for previous/existing GitHub issues
Issue Type?
Bug
Description
When I use the
Set-AVMModule
to generate documentation and build the Bicep, it generates amain.bicep
file in the wrong directory. If I try to re-run it, I receive an errorInvalidOperation: The script failed due to call depth overflow.
Steps to reproduce:
pwsh
terminalThere is now a new
main.bicep
file at/workspaces/bicep-registry-modules/avm/res/aad/domain-service/aad/domain-service/main.bicep
Logs:
Set-AVMModule -ModuleFolderPath avm/res/aad/domain-service
againLogs:
I don't have much experience with PowerShell so I'm not sure if I'm simply running the script incorrectly