[ARM] az bicep build: Fix #22621: --stdout does not work#22685
[ARM] az bicep build: Fix #22621: --stdout does not work#22685zhoxing-ms merged 3 commits intoAzure:devfrom
az bicep build: Fix #22621: --stdout does not work#22685Conversation
ellismg
left a comment
There was a problem hiding this comment.
LGTM.
Just wondering - imagine that we only called run_bicep_command(args) from a single place (i.e. as we do on line 3687) and just captured the output and then depending on if stdout was set we printed the value, otherwise return?
I'm wondering if that would make it less likely, going forward, for issues like this to be introduced?
Good point. I'll do some refactoring. |
|
ARM |
|
@shenglol Please merge this as soon as you can. This bug causes all CARML pipelines running on Ubuntu-20.04 to fail as the 'az bicep build' command does not return any more results. |
|
@zhoxing-ms Could you help approve and merge the PR? |
I'd suggest using the workaround below: Or we can just directly invoke Bicep CLI available at |
|
Thanks for the quick fix! |
Related command
Description
v2.37.0 has a regression where
--stdoutstops working foraz bicep build. The PR fixes it.Closes #22621.
Testing Guide
az bicep build -f main.bicep --stdoutThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.