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

[BUG] Bad $arch when using GNU coreutils on mac os #14

Closed
ddlees opened this issue Dec 23, 2019 · 0 comments
Closed

[BUG] Bad $arch when using GNU coreutils on mac os #14

ddlees opened this issue Dec 23, 2019 · 0 comments

Comments

@ddlees
Copy link
Contributor

ddlees commented Dec 23, 2019

Expected:

g install latest should fetch and install latest golang version (currently v1.13.5) using the following url: https://dl.google.com/go/go1.13.5.darwin-amd64.tar.gz

Actual:

g install latest attempts to fetch https://dl.google.com/go/go1.13.5.darwin-386.tar.gz which returns a 404 due to bad $arch variable

Suggested resolution:

Use uname -m instead of uname -a when setting $arch.

Ref: https://github.com/tj/n/blob/master/bin/n#L797

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