kerolloz / go-installer Goto Github PK
View Code? Open in Web Editor NEWGo-Installer: Effortless Golang Installation with One Command! ๐
License: MIT License
Go-Installer: Effortless Golang Installation with One Command! ๐
License: MIT License
Hi, I latest version of go is 1.16 which means the current version regex is not working with it. Can you fix it please? Thanks.
Trying to install versions like go1.19rc1
and go1.19beta1
gives an error because we check if the specified version matches the three numbers, separated by two dots format (e.g. 1.2.3
). We can skip the regex matching and depend only on seeing if the selected version exists on the website.
If the installation script from https://git.io/go-installer is run multiple times. Exports are keep appending to .bashrc.
This is the result after 2 installations
export GOROOT=/home/tango/.go
export GOPATH=/home/tango/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
export GOROOT=/home/tango/.go
export GOPATH=/home/tango/go
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
I am using ansible-playbook
to install if it makes any difference:
- name: Install GO
shell: curl -sL https://git.io/go-installer | bash -
Are you open to adding an option to clean up the downloaded artifact or do this by default?
It's ever so slightly annoying to have to do this manually after a new version gets installed.
bash <(curl -sL https://git.io/go-installer)
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
____ ___ ___ _ _ ____ _____ _ _ _ _____ ____
/ ___|/ _ \ |_ _| \ | / ___|_ _|/ \ | | | | | ____| _ \
| | _| | | |_____| || \| \___ \ | | / _ \ | | | | | _| | |_) |
| |_| | |_| |_____| || |\ |___) || |/ ___ \| |___| |___| |___| _ <
\____|\___/ |___|_| \_|____/ |_/_/ \_\_____|_____|_____|_| \_\
Finding latest version of Go for linux-amd64...
Downloading Go latest version (1.22.5)...
Unknown option 'show-progress'
Download failed!
Been using this tool for ages but suddenly getting this issue, not sure what's going on here.
Installing without root shows fails and asks for root.
Running with sudo installs to /root/ making it inaccessible to other users.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.