Giter Site home page Giter Site logo

kerolloz / go-installer Goto Github PK

View Code? Open in Web Editor NEW
121.0 2.0 13.0 68 KB

Go-Installer: Effortless Golang Installation with One Command! ๐Ÿš€

License: MIT License

Shell 100.00%
go golang installer install shell script mac linux bash shell-script bash-script go-installer google

go-installer's Issues

go version 1.16

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.

add more features and functionality

User can :

  • #12
  • choose whether to remove the installer(the downloaded package file) or not after installation
  • specify the place of extracting go binary (GOROOT) && workplace(GOPATH).
  • #11

handle installing versions with non-numerical values

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.

.bashrc fills with exports

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 -

Option to remove tar.gz after install?

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.

Raspberry PI - downloaded index.html

Hi,
I'm trying to use the script on a Raspberry PI, and this is the result that I get:
image

Am I doing something wrong? I've tried to both download it and executing it directly.

Unknown option 'show-progress'

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.

Broken installation

Installing without root shows fails and asks for root.

Running with sudo installs to /root/ making it inaccessible to other users.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.