From bf5ca8d171bc92b88987b1b2d9ef5185671b49a1 Mon Sep 17 00:00:00 2001 From: Arjan van Rijn <1208884+aadje@users.noreply.github.com> Date: Fri, 22 Oct 2021 10:30:34 +0200 Subject: [PATCH] azure-cli: Fix AzureCLIPath environment variable (#2717) The 2 AzureCLIPath environment variables introduced in https://github.com/ScoopInstaller/Main/pull/1469 are not set to the actual az cli path. Since az is installed in the \wbin sub folder, as seen in the bin property. This for example resulted in tools using the go-autorest library not working when the az cli is installed using scoop. https://github.com/Azure/go-autorest/blob/c7f947c0610de1bc279f76e6d453353f95cd1bfa/autorest/azure/cli/token.go#L128 --- bucket/azure-cli.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bucket/azure-cli.json b/bucket/azure-cli.json index c9d762aacc..f62ff6131f 100644 --- a/bucket/azure-cli.json +++ b/bucket/azure-cli.json @@ -15,7 +15,7 @@ "url": "https://azurecliprod.azureedge.net/msi/azure-cli-$version.msi" }, "env_set": { - "AzureCLIPath": "$dir", - "AZURE_CLI_PATH": "$dir" + "AzureCLIPath": "$dir\\wbin", + "AZURE_CLI_PATH": "$dir\\wbin" } }