-
-
Notifications
You must be signed in to change notification settings - Fork 971
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
[Bug]: Error when trying to install azure-cli #5300
Comments
I have the same issue on one machine but not on another. The difference is the username - 6 characters where it works, 9 where it doesn't. The file it complains about is 261 characters: |
I managed to install version 2.55.0 by changing
|
Same error for me |
Would a enabled long path support solve this issue? OR |
Hi appreciate the suggestions. LongPaths support is disabled by my organization and I am unable to change this. running I like rob-spoor's approach as well in the comment #5300 (comment) |
emmmm, I was working on another issue at the time and got confused.
Yes, it is works, but may caused performance issue (when moving extracted files), if users installs Scoop to another disk instead of disk of system partition. And changes to Core code may cause Scoop's self-update fail when next release published. |
The official fix for this is enabling LongPath support, if not, using LessMSI as commented earlier. Closing the issue in this light. |
Azure CLI is also released as a ZIP package now, but then only for x64.
What about changing the manifest to use ZIP instead? Or add a Edit: Here's a manifest that seems do work at least for installation. Filename {
"version": "2.60.0",
"description": "A cross-platform command-line tool to connect to Azure and execute administrative commands on Azure resources",
"homepage": "https://aka.ms/cli",
"license": "MIT",
"notes": [
"* Known issue:",
" - Cannot be extracted due to long path: https://github.com/ScoopInstaller/Main/issues/5300"
],
"architecture": {
"64bit": {
"url": "https://azcliprod.blob.core.windows.net/zip/azure-cli-2.60.0-x64.zip",
"hash": "40891711b9cc31693df7445db5236f8c7a6cae851f9087cace0e0186781a6a73"
}
},
"env_set": {
"AZURE_CLI_PATH": "$dir\\bin",
"AzureCLIPath": "$dir\\bin"
},
"bin": "bin\\az.cmd",
"checkver": {
"github": "https://github.com/Azure/azure-cli",
"regex": "/releases/tag/azure-cli-([\\d.]+)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://azcliprod.blob.core.windows.net/zip/azure-cli-$version-x64.zip"
}
}
}
} A PowerShell command to chech whether long paths has been enabled, could be used in [bool](
(Get-ItemPropertyValue -Path 'Registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -ErrorAction 'Ignore') -eq 1
) |
Prerequisites
Package Name
azure-cli
Expected/Current Behaviour
Current behaviour
Having a problem updating or installing the azure-cli package (2.54.0 at time of writing). The last successful version of the package I was able to install was version 2.51.0
The error I receive from the azure-cli installer is "Error writing to file:
C:\users\XXXXXXXX\scoop\apps\azure-cli\2.54.0_tmp\SourceDir\Microsoft SDKs\Azure\SLI2\Lib\site-packages\azure\cli\command_modules\dla\vendored_sdks\azure_mgmt_datalake_analytics\catalog\models\data_lake_analytics_catalog_secret_create_or_update_parameters.pyc"
The Log file referenced by scoop does not exist. (~\scoop\apps\azure-cli\2.54.0\msi.log)
Steps to Reproduce
Possible Solution
The error I receive from the installer (see current behaviour section) references a very long file path.. possible solution is to change the temp folder where the MSI is extracted to a shorter path
Scoop and Buckets Version
Scoop Config
PowerShell Version
Additional Softwares
No response
The text was updated successfully, but these errors were encountered: