Skip to content
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

Install failed: gzip error #38

Closed
CloudyCity opened this issue Mar 27, 2024 · 1 comment
Closed

Install failed: gzip error #38

CloudyCity opened this issue Mar 27, 2024 · 1 comment

Comments

@CloudyCity
Copy link

To Reproduce

Steps to reproduce the behavior:

  1. Install with command: curl -sSL https://git.io/g-install | sh -s
  2. Install go: g install 1.22.1

Error output

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Environment

Windows MSYS2 zsh

Additional context

image

@stefanmaric
Copy link
Owner

Hi @CloudyCity, thanks for reporting this issue.

This seems to me to be a corrupted download.

We do not check shasums as it would mean bundling the versions information with g, which in turns means having to update g before being able to use new versions of go, something that differentiates g from other go version managers.

Instead, for security, we simply rely on SSL and the OS installed certificate chains.

Other possibility might be a faulty version of gunzip in your system. g doesn't really support MSYS2, it officially supports MacOS, Linux, FreeBSD/OpenBSD and windows only via WSL, while it should probably work on any Unix-like, POSIX-compliant system.

Since MSYS2 does not aim to be POSIX-compliant I will treat this issue as out-of-scope.

If you can replicate this error in other environments, like WSL, please feel free to open another issue.

Thanks again for your collaboration. ❤

@stefanmaric stefanmaric closed this as not planned Won't fix, can't repro, duplicate, stale Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants