Re: [go-nuts] Go one-line installer

2017-08-02 Thread roger peppe
On 2 August 2017 at 12:16, Jan Mercl <0xj...@gmail.com> wrote:
> On Wed, Aug 2, 2017 at 12:47 PM Florin Pățan  wrote:
>
>> I would never put anyone to the trouble of compiling Go themselves, so
>> it's not clear why you are suggesting that.
>
> From where comes the assumption that it's a trouble? I was not suggesting
> anything, but while we are at it, I think that installing from sources is by
> far the easiest way how to install Go. Precompiled binaries are inevitably
> depending on assumptions about the target system that can never be true
> across everyone's box - even when targeting the proper arch/platform/distro
> and release (and then you have to maintain a lot of targets). And if the
> assumptions don't hold, then that's what I'd call frustrating, provided it's
> usually not immediately clear where the problem is because there was no
> compiling/buildind/testing peformed locally making it much easier to figure
> out what went wrong.
>
>> I also don't do that myself and cannot see the value on doing it.
>
> Well, by definition you can't if you haven't tried. Anyway, above quoted
> says it's a trouble. Why?
>
>> Go has installers available for Windows/macOS and a tarball for Linux,
>> already precompiled and ready to Go (pun intended), why would I spend the
>> time compiling Go myself?
>
> To avoid the frustration and confusion you are talking about? I have always
> installed Go from sources and I never experienced any frustration when doing
> that (modulo me not reading or following the instructions and similar cases
> of being silly.)

When I've suggested that people install Go from source, I have encountered
problems because go1.4 no longer compiles from source on some platforms.

-- 
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.


Re: [go-nuts] Go one-line installer

2017-08-02 Thread Jan Mercl
On Wed, Aug 2, 2017 at 12:47 PM Florin Pățan  wrote:

> I would never put anyone to the trouble of compiling Go themselves, so
it's not clear why you are suggesting that.

>From where comes the assumption that it's a trouble? I was not suggesting
anything, but while we are at it, I think that installing from sources is
by far the easiest way how to install Go. Precompiled binaries are
inevitably depending on assumptions about the target system that can never
be true across everyone's box - even when targeting the proper
arch/platform/distro and release (and then you have to maintain a lot of
targets). And if the assumptions don't hold, then that's what I'd call
frustrating, provided it's usually not immediately clear where the problem
is because there was no compiling/buildind/testing peformed locally making
it much easier to figure out what went wrong.

> I also don't do that myself and cannot see the value on doing it.

Well, by definition you can't if you haven't tried. Anyway, above quoted
says it's a trouble. Why?

> Go has installers available for Windows/macOS and a tarball for Linux,
already precompiled and ready to Go (pun intended), why would I spend the
time compiling Go myself?

To avoid the frustration and confusion you are talking about? I have always
installed Go from sources and I never experienced any frustration when
doing that (modulo me not reading or following the instructions and similar
cases of being silly.)

-- 

-j

-- 
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.


Re: [go-nuts] Go one-line installer

2017-08-02 Thread Florin Pățan
On Wednesday, August 2, 2017 at 11:34:33 AM UTC+1, Jan Mercl wrote:
>
> On Wed, Aug 2, 2017 at 12:27 PM Florin Pățan  > wrote:
>
> > I speak from the experience of trying to help people get Go running on 
> Linux, macOS and Windows, this is a terribly frustrating step and unknown 
> for most of them.
>
> Please share what's frustrating and not clear about the step-by-step 
> instructions , so they can be 
> improved.
>
> -- 
>
> -j
>

I would never put anyone to the trouble of compiling Go themselves, so it's 
not clear why you are suggesting that. I also don't do that myself and 
cannot see the value on doing it. Go has installers available for 
Windows/macOS and a tarball for Linux, already precompiled and ready to Go 
(pun intended), why would I spend the time compiling Go myself?

Back on track.

People have problems with following this 
page: https://golang.org/doc/code.html . I don't know how it can be 
improved because I cannot understand the problem myself. Whenever I explain 
it to those that fail to read, it suddenly becomes clear and following the 
same steps there makes it magically work. And it's even funnier when I 
solve it for the people working on macOS because I never used that OS but 
people that have been using it for years seem unable to change environment 
variables :)

Maybe simple, clear, videos on how to set GOPATH, PATH and so on on the 
various operating systems would help as it's usually easier for anyone to 
just follow the instructions provided in a visual way (but I don't have any 
data/facts to back this up).

-- 
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.


Re: [go-nuts] Go one-line installer

2017-08-02 Thread Jan Mercl
On Wed, Aug 2, 2017 at 12:27 PM Florin Pățan  wrote:

> I speak from the experience of trying to help people get Go running on
Linux, macOS and Windows, this is a terribly frustrating step and unknown
for most of them.

Please share what's frustrating and not clear about the step-by-step
instructions , so they can be
improved.

-- 

-j

-- 
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.


Re: [go-nuts] Go one-line installer

2017-08-02 Thread Florin Pățan
On Wednesday, August 2, 2017 at 1:37:48 AM UTC+1, Tyler Compton wrote:
>
> > I was quite happy that the era of executable "installers" died once we
> > got package managers.
>
> This seems to come from a purely Linux perspective. I suspect that people 
> who use Linux are quite a bit less likely to benefit from this solution 
> anyway, because most Linux users are used to setting environment variables 
> and installing from tarballs. The era of executable installers has not died 
> on Windows or on Mac.
>
> > If something is to be improved, perhaps the
> > quality of packages for various distributions could be improved
> > instead. That is what the users want anyway, to use their distro
> > package manager.
>
> Trying to improve every distro's Go version is a substantially more 
> difficult problem, and even worse, it's a bureaucratic one. I think it 
> would be a lot more productive to spend that time working on the technical 
> problem of security than giving up and tackling a much harder one.
>
> On Tue, Aug 1, 2017 at 4:49 PM Florin Pățan  > wrote:
>
>> Hi,
>>
>> The idea is good but:
>> - it needs to modify the path to add GOROOT/bin and GOPATH/bin to it
>> - it should allow for multiple versions of Go to be installed 
>> simultaneously (including 1.x.y vs 1.x.z versions)
>> - it should change the PATH on all three OSes regardless of the shell 
>> used, which is the hardest part I guess (as this is the part that trips 
>> over most of the people, along with the GOPATH requirement)
>>
>> Thank you.
>>
>> --
>> 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...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
I speak from the experience of trying to help people get Go running on 
Linux, macOS and Windows, this is a terribly frustrating step and unknown 
for most of them.

Please don't dismiss this based on what you think but rather on actual 
facts. I can show you countless questions that come up in Slack on: how do 
I install this and people being frustrated with the setup process.

-- 
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.


Re: [go-nuts] Go one-line installer

2017-08-01 Thread Tyler Compton
> I was quite happy that the era of executable "installers" died once we
> got package managers.

This seems to come from a purely Linux perspective. I suspect that people
who use Linux are quite a bit less likely to benefit from this solution
anyway, because most Linux users are used to setting environment variables
and installing from tarballs. The era of executable installers has not died
on Windows or on Mac.

> If something is to be improved, perhaps the
> quality of packages for various distributions could be improved
> instead. That is what the users want anyway, to use their distro
> package manager.

Trying to improve every distro's Go version is a substantially more
difficult problem, and even worse, it's a bureaucratic one. I think it
would be a lot more productive to spend that time working on the technical
problem of security than giving up and tackling a much harder one.

On Tue, Aug 1, 2017 at 4:49 PM Florin Pățan  wrote:

> Hi,
>
> The idea is good but:
> - it needs to modify the path to add GOROOT/bin and GOPATH/bin to it
> - it should allow for multiple versions of Go to be installed
> simultaneously (including 1.x.y vs 1.x.z versions)
> - it should change the PATH on all three OSes regardless of the shell
> used, which is the hardest part I guess (as this is the part that trips
> over most of the people, along with the GOPATH requirement)
>
> Thank you.
>
> --
> 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.
>

-- 
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.


[go-nuts] Go one-line installer

2017-08-01 Thread Florin Pățan
Hi,

The idea is good but:
- it needs to modify the path to add GOROOT/bin and GOPATH/bin to it
- it should allow for multiple versions of Go to be installed simultaneously 
(including 1.x.y vs 1.x.z versions) 
- it should change the PATH on all three OSes regardless of the shell used, 
which is the hardest part I guess (as this is the part that trips over most of 
the people, along with the GOPATH requirement)

Thank you.

-- 
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.


[go-nuts] Go one-line installer

2017-08-01 Thread Steve Francia
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.