Re:Bash and Windows Subsystem for Linux Demo [video]
by chrisper on Tuesday February 21, 2017 @11:53AM
(#13697001)
I just ran my local go project in WSL. And I can confirm it works just like it does in Linux. This is huge for everyone!
[ Parent
| on HN ]
Re:Bash and Windows Subsystem for Linux Demo [video]
by hellcow on Tuesday February 21, 2017 @01:08PM
(#13697782)
Along those lines, a great trick for Go on Windows is to set your $GOPATH outside of the WSL filesystem, so you're developing in, e.g. /mnt/c/. This gives you full access in both Windows and Linux to your Go project, so if you need to open a file in Photoshop, etc. it's painless.
Re:Bash and Windows Subsystem for Linux Demo [video]
by kaio on Tuesday February 21, 2017 @12:27PM
(#13697390)
I seem to miss the point why this is huge. Why can't the project compiled for Windows in first place? Are there System specific calls?
Re:Bash and Windows Subsystem for Linux Demo [video]
by chrisper on Tuesday February 21, 2017 @12:35PM
(#13697487)
I like to do my Go development in a Linux environment. So if I wanted to use Windows as my main OS, I'd have to either dual boot or use a VM. Now I can just develop directly in WSL.
A lot of people like to also develop in an environment they are going to deploy in. In my case I have some linux specific path in my code.
I am also running now Gogland Linux version through WSL.