New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Issue] Bicep installer prefers MUSL variant over glibc #2683
Comments
@ellismg can you take a look at @mthebridge recommendation? |
This matches the behavior of the `az` CLI, which uses this same logic. When we orginally implemented this, `az` did not have this special case, it was added later. Fixes Azure#2683
Thought that I wrote a response here but looks like I forgot to submit it. Thanks for opening this @mthebridge. You are correct that we modeled getting bicep off the logic in the |
FWIW, as a workaround until the fix lands (or for others who stumble upon this issue later) you can download the glibc bicep yourself from the GitHub releases page and then set the environment variable |
Thanks @ellismg - I'd already discovered that workaround and have been using that fine. |
This matches the behavior of the `az` CLI, which uses this same logic. When we orginally implemented this, `az` did not have this special case, it was added later. Fixes #2683
Output from
azd version
azd version 1.2.0 (commit 99ea757)
Describe the bug
When azd installs its bicep provider, it uses the presence of the MUSL linker on the system to determine whether to install a MUSL based bicep. See this code here:
azure-dev/cli/azd/pkg/tools/bicep/bicep.go
Line 167 in ba25a8c
I believe this is the same issue in the main Azure CLI as Azure/bicep#5040 which was fixed by only installing the musl-based variant if there is no glibc installed. Could the same fix as made under https://github.com/Azure/azure-cli/pull/23040/files be made here in the developer CLI? Happy to offer a PR if that would be helpful.
To Reproduce
azd up
in a Bicep-based deployment. Bicep installs but fails to run.Expected behavior
Bicep should be installed for the correct system libc.
Environment
WSL Ubuntu 20.04 on Windows 11.
The text was updated successfully, but these errors were encountered: