microsoft / microsoft/winget-pkgs
[Package Issue]: Bitwarden.CLI
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 11.1k
- Forks
- 9.7k
- Avg merge
- 1h 32m
- Merged PRs (30d)
- 376
Description
Please confirm these before moving forward
- I have searched for my issue and not found a work-in-progress/duplicate/resolved issue.
- I have not been informed if the issue is resolved in a preview version of the winget client.
Category of the issue
Installation issue.
Brief description of your issue
The Bitwarden CLI installer is causing a "Failed to extract the contents of the archive" error across a wide range of package versions, so I'm not sure if the package hasn't worked for a while, or if winget went off the rails (v1.8.1911), or if there's something wrong with my system. The steps below are using a pinned version of 2024.8.1 just for reproducibility, but it happens on other versions I've checked as well.
Steps to reproduce
$ winget install -q Bitwarden.CLI -v 2024.8.1
Found Bitwarden CLI [Bitwarden.CLI] Version 2024.8.1
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/bitwarden/clients/releases/download/cli-v2024.8.1/bw-windows-2024.8.1.zip
██████████████████████████████ 28.3 MB / 28.3 MB
Successfully verified installer hash
Extracting archive...
Failed to extract the contents of the archive
Actual behavior
"Failed to extract the contents of the archive", and the log says:
2024-09-03 12:27:08.250 [CORE] DeliveryOptimization downloading from url: https://github.com/bitwarden/clients/releases/download/cli-v2024.8.1/bw-windows-2024.8.1.zip
2024-09-03 12:27:12.688 [CORE] Download completed.
2024-09-03 12:27:12.902 [CORE] Started applying motw to $user\AppData\Local\Temp\WinGet\Bitwarden.CLI.2024.8.1\7dc84e91255cc0213f41c54a3bf183e67c80417310b59212d86e44d24056e62d with zone: 3
2024-09-03 12:27:12.903 [CORE] Finished applying motw
2024-09-03 12:27:12.904 [CLI ] Installer hash verified
2024-09-03 12:27:12.904 [CORE] Started applying motw to $user\AppData\Local\Temp\WinGet\Bitwarden.CLI.2024.8.1\7dc84e91255cc0213f41c54a3bf183e67c80417310b59212d86e44d24056e62d with zone: 2
2024-09-03 12:27:12.906 [CORE] Finished applying motw
2024-09-03 12:27:12.906 [CLI ] Successfully renamed downloaded installer. Path: $user\AppData\Local\Temp\WinGet\Bitwarden.CLI.2024.8.1\bw-windows-2024.8.1.zip
2024-09-03 12:27:13.021 [CLI ] Extracting archive to: $user\AppData\Local\Temp\WinGet\Bitwarden.CLI.2024.8.1\extracted
2024-09-03 12:27:13.049 [FAIL] C:\__w\1\s\external\pkg\src\AppInstallerCommonCore\Archive.cpp(30)\WindowsPackageManager.dll!00007FFDE61A4397: (caller: 00007FFDE60FA17C) ReturnHr(1) tid(615c) 80004005 Unspecified error
2024-09-03 12:27:13.049 [CLI ] Failed to extract archive with code -2147467259
2024-09-03 12:27:13.050 [CLI ] Terminating context: 0x8a15005c at C:\__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\ArchiveFlow.cpp:4a
I can open the archive bw-windows-2024.8.1.zip in the above temp dir and extract it manually by hand just fine using 7-zip, so I'm not sure what the issue is.
Expected behavior
A successfully installed package
Environment
Windows Package Manager v1.8.1911
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22631.4112
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.0
Screenshots and Logs
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Bitwarden.CLI package entry in winget-pkgs and reproduce the reported winget install -q Bitwarden.CLI -v 2024.8.1 command. Inspect the referenced GitHub release archive and the supplied extraction log; done means the package installs successfully rather than failing during archive extraction.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli, operating-systems, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100