starship: installation fails on windows powershell because of checksum not matching

Bug Report

Current Behavior

i get the following error while trying to install starship on windows using choco choco install starship Chocolatey v0.11.3 Installing the following packages: starship By installing, you accept licenses for the packages. Progress: Downloading starship 1.1.1… 100%

starship v1.1.1 [Approved] starship package files install completed. Performing other installation steps. The package starship wants to run ‘chocolateyInstall.ps1’. Note: If you don’t run this script, the installation will fail. Note: To confirm automatically next time, use ‘-y’ or consider: choco feature enable -n allowGlobalConfirmation Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): A

File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded. Error - hashes do not match. Actual value was ‘9BB0A3672C8393484E342809E6C96BE5086497A202E4DC66F4D924DE52DA61E4’. Downloading starship from ‘https://github.com/starship/starship/releases/download/v1.1.1/starship-x86_64-pc-windows-msvc.zip

Download of starship-x86_64-pc-windows-msvc.zip (-1 B) completed. Error - hashes do not match. Actual value was ‘9BB0A3672C8393484E342809E6C96BE5086497A202E4DC66F4D924DE52DA61E4’. ERROR: Checksum for ‘C:\Users$user\AppData\Local\Temp\chocolatey\starship\1.1.1\starship-x86_64-pc-windows-msvc.zip’ did not meet ‘9dff524892074824264d0012c7ecba3ab97dd7b6a0eef41d4ade3a5be2cef25e’ for checksum type ‘sha256’. Consider passing the actual checksums through with --checksum --checksum64 once you validate the checksums are appropriate. A less secure option is to pass --ignore-checksums if necessary. The install of starship was NOT successful. Error while running ‘C:\ProgramData\chocolatey\lib\starship\tools\chocolateyInstall.ps1’. See log for details.

Chocolatey installed 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures

  • starship (exited -1) - Error while running ‘C:\ProgramData\chocolatey\lib\starship\tools\chocolateyInstall.ps1’. See log for details.

i also tried below. choco install starship --checksum 9dff524892074824264d0012c7ecba3ab97dd7b6a0eef41d4ade3a5be2cef25e same error.

Expected Behavior

Additional context/Screenshots

Possible Solution

Environment

  • Starship version: [the output of starship --version] v1.1.1
  • Shell type: [fish, zsh] powershell
  • Shell version: [the output of fish --version or zsh --version] PSVersion 5.1.18362.1801
  • Shell plugin manager: [if present, e.g. oh-my-fish, oh-my-zsh, fisher, antigen]
  • Terminal emulator: [e.g. iTerm, Hyper, Terminator]
  • Operating system: [e.g. macOS 10.13.4, Windows 10] Windows10

Relevant Shell Configuration

# Your configuration here

Starship Configuration

# Your configuration here

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (11 by maintainers)

Most upvoted comments

Hi!

Scoop core maintainer here. The latest release installs fine:

image

@shakilbd009 your download did not complete successfully. Notice the (-1 B) at the end of ‘Downloading…’ part in your output. The archive is certainly not negative in size 😅. It is around 2.5 MB. Try clearing your cache and retrying.

I assume choco has the same problem (the mismatched hash is identical).

This happens sometimes due to choppy connection with github.com host.