On Thursday, 12 October 2017 11:23:08 UTC+11, Pat Farrell wrote:
> ... But there was nothing that told me why.

Are you asking me why all your Go code should live inside of single 
directory? Hopefully others will reply. But I think it is because Go does 
not use any config files to build programs. There are no "project files" or 
"Makefile" or whatever. Go tools use your directory structure to work out 
how to build things.

> Again, it looks like someone who hated Windows (and I hate Windows as 
much as any other developer) was forced to implement it and wrote the 
minimal documentation they could. They did this long ago, and no one has 
updated it

That is what we have. If you think you can make it better, feel free to 
contribute or at least report an issue at https://golang.org/issue

> Seriously? That sure seem like bad practices to me. Nearly all the code 
I've worked on over the past 40 years was too big to go into a single 
directory.

Well Go tools put everything under GOPATH.

> Which is a Linux-type instruction. Doesn't work on Windows

`set GOPATH=c:\gopath` works for me on Windows. On Linux you want something 
like `export GOPATH=/home/alex/gopath` (this depends on what shell you use).

>> Sure. But Go is still not supported on WSL.
> 
> That is a bug.

Yes, it is a bug. I hope Microsoft are working on fixing these.
 
>> If you want to use development environment with bugs, then sure, you 
could do that. 
>
> I'm sorry, this attitude is not helpful.

I did not intend to offend you, I apologize if I did. I just stated the 
fact that WSL is too buggy to be used for development (in my opinion). But 
you are free to use whatever tools you like.

> The installation for binaries uses some standard Windows installation 
tool, been the same since about Windows 95. Its clearly not written in go

Or yes. Go installation program (like many others on Windows) is built 
using "WiX Toolset". But you don't even have to use that. You can just 
download Go as a zip file (search for "Zip archive" on 
https://golang.org/doc/install )

> I have now been dorking around on this for a couple of days.

I think you are making things harder for yourself by trying to mix 2 new 
things at the same time: Go and WSL. I suggest you try and use Linux 
version of Go on your Linux computer or use Windows version of Go on your 
Windows computer. These scenarios are very common and people will quickly 
help you with that.

Alex

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