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

Golang download incorrect format #41959

Closed
bishgupp opened this issue Oct 13, 2020 · 2 comments
Closed

Golang download incorrect format #41959

bishgupp opened this issue Oct 13, 2020 · 2 comments

Comments

@bishgupp
Copy link

What version of Go are you using (go version)?

$ go version

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env

What did you do?

while working on m local mac and also via a LinuxAcademy Cloud CentOS vm

[root@6f63fcad301c tmp]# curl -O "https://golang.org/dl/go1.15.2.linux-amd64.tar.gz"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 75 100 75 0 0 797 0 --:--:-- --:--:-- --:--:-- 797
[root@6f63fcad301c tmp]# ls -l
total 4
-rw-rw-r--. 1 cloud_user cloud_user 75 Oct 13 20:37 go1.15.2.linux-amd64.tar.gz
drwxr-xr-x. 2 root root 19 Oct 13 17:10 hsperfdata_root
drwx------. 2 cloud_user cloud_user 24 Oct 13 15:42 ssh-vdRqQLd42Gs7
drwx------. 3 root root 17 Oct 13 15:42 systemd-private-005a7aaa0fb94a7083433a6ae176b798-bolt.service-Sa3En3
drwx------. 3 root root 17 Oct 13 15:41 systemd-private-005a7aaa0fb94a7083433a6ae176b798-chronyd.service-wu8Liu
drwx------. 3 root root 17 Oct 13 15:42 systemd-private-005a7aaa0fb94a7083433a6ae176b798-colord.service-I8GoTG
drwx------. 3 root root 17 Oct 13 15:42 systemd-private-005a7aaa0fb94a7083433a6ae176b798-fwupd.service-MmSimM
drwx------. 3 root root 17 Oct 13 15:41 systemd-private-005a7aaa0fb94a7083433a6ae176b798-ModemManager.service-gEbAxp
drwx------. 3 root root 17 Oct 13 15:42 systemd-private-005a7aaa0fb94a7083433a6ae176b798-rtkit-daemon.service-syOiLy
drwx------. 2 cloud_user cloud_user 6 Oct 2 01:04 tracker-extract-files.1001
[root@6f63fcad301c tmp]# file go1.15.2.linux-amd64.tar.gz
go1.15.2.linux-amd64.tar.gz: HTML document, ASCII text

What did you expect to see?

a tar.gz formated file

What did you see instead?

an html file

@seankhliao
Copy link
Member

seankhliao commented Oct 13, 2020

follow the redirects (curl -L)

the server responds with both a HTTP 302 and a text link

@davecheney
Copy link
Contributor

Closing as answered

@golang golang locked and limited conversation to collaborators Oct 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants