Skip to content

Installation error of 1.21.0 on Linux: wrong permissions after uncompress tar file. #62479

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

Closed
riccardo1991 opened this issue Sep 6, 2023 · 2 comments

Comments

@riccardo1991
Copy link

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

$ go version
go version go1.21.0 linux/amd64

Does this issue reproduce with the latest release?

Yes

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

go env Output
$ go env

What did you do?

The suggested command for installing Go is not working with 1.21.0.
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.21.0.linux-amd64.tar.gz

Tar generates a folder with 750 permissions:

$ ls -la /usr/local 
...
drwxr-x--- 10 root 4096 sept.  6 17:39 go
...

So a chmod 755 -R is neecessary.

With 1.20.7 no problems:

$ sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.20.7.linux-amd64.tar.gz 

$ ls -la /usr/local 
...
drwxr-xr-x 10 root 4096 juil. 26 23:43 go
...

What did you expect to see?

/usr/local/go with 755 permissions.

What did you see instead?

/usr/local/go with 750 permissions.

@riccardo1991
Copy link
Author

riccardo1991 commented Sep 6, 2023

Ok, I saw 1.21.1 was released in the very same moment I have created the issue.
With 1.21.1, no problems.

@seankhliao
Copy link
Member

Duplicate of #61862

@seankhliao seankhliao marked this as a duplicate of #61862 Sep 6, 2023
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Sep 6, 2023
@golang golang locked and limited conversation to collaborators Sep 5, 2024
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

3 participants