Skip to content

[Issue] Bicep installer prefers MUSL variant over glibc #2683

Description

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:

if _, err := os.Stat("/lib/ld-musl-x86_64.so.1"); err == nil {

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

  • Install the musl libc toolchain.
  • Run 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/bicepBicep-specific provisioningarea/installerInstall scripts, MSI, self-update

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions