Hello Steve, that looks very promising, thank you so much!

I just tried on GCE, here is a gist 
<https://gist.github.com/Deleplace/bfaff085b813cd8c602a253ca45e46ac>.
Possible quirk :
$ go version 
go: cannot find GOROOT directory: /usr/local/go
$ go doc fmt
go: cannot find GOROOT directory: /usr/local/go
$ go get github.com/gorilla/mux
go: cannot find GOROOT directory: /usr/local/go

Note that I didn't try to sudo anything.

Questions:
- is it recommanded to set the GOPATH variable, even since 17262 
<https://github.com/golang/go/issues/17262> and go 1.8 seem to regard ~/go 
as a cromulent default?
- might it be possible to avoid to extra step "One more thing! ... ... ... 
or open a new shell prompt", by sourcing everything needed? Something like
curl -LO https://get.golang.org/$(uname)/go_installer_script && source 
go_installer_script

This one-liner project will bring all of us command-line users a super-nice 
developer UX, especially when frequently installing Go to new machines :)
Cheers
Valentin

On Tuesday, August 1, 2017 at 9:42:00 PM UTC+2, Steve Francia wrote:
>
> Greetings Gophers,
>
> I've been working on a "one line installer" for Go with Jess Frazelle and 
> Chris Broadfoot and we think it's ready to share a bit more broadly.
>
> The installer is designed to both install Go as well as do the initial 
> configuration of setting up the right environment variables and paths.
> It will install the Go distribution (tools & stdlib) to "/.go" inside your 
> home directory by default.
> It will setup "$HOME/go" as your GOPATH. 
>
> If Go is already installed *via this installer* it will upgrade it to the 
> latest version of Go.
>
> Currently supported systems:
>   linux, darwin, windows / amd64, 386 / bash, zsh, powershell
>
>
> *Usage*
> Windows Powershell:
> (New-Object System.Net.WebClient).DownloadFile('
> https://get.golang.org/installer.exe', 'installer.exe'); Start-Process 
> -Wait -NonewWindow installer.exe; Remove-Item installer.exe
>
> Shell (Linux/macOS/Windows):
> curl -LO https://get.golang.org/$(uname)/go_installer && chmod +x 
> go_installer && ./go_installer && rm go_installer
>
>
> As we discovered developing this, installers are really all edge cases. 
> We're certain we've not found many of them. 
> *Our goal is that this becomes the primary mechanism to install Go. *
> *To do that, we need your help testing, improving and fixing it. *
>
> The source can be found at 
> https://go.googlesource.com/tools/+/master/cmd/getgo/
> If you find any issues please report them on Github 
> https://github.com/golang/go/issues/new?title=tools/cmd/getgo:
>
> Thanks,
> Steve
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to