-
Notifications
You must be signed in to change notification settings - Fork 26
Golang Box #33
Comments
try :
|
I installed successfully, but how could I set GOPATH and where point to? |
If you send us a template, we'll use that as a start and add it to templates. We are not really experienced Go users, so if you tell us what you want, we'll do our best to add it quickly. @MaximKraev can you help with the GOPATH question? |
I don't know the template of Codio. If the Codio box base the Docker, it's just a Docker within Golang like https://index.docker.io/u/mischief/docker-golang. |
our docker container don't have golang preinstalled, parts packages are installed into a user home directory, go lang is located in ~/.parts/packages/go-lang/1.2/
|
@genedna if you are all ok with this, I will close the issue out. |
@MaximKraev When you get the 3rd package, you will got
If I set $GOPATH, I write it to .profile or .bash_profile ? |
ok, now I understand the issue, it is fixed
and restart terminal |
@MaximKraev I think this doesn't solve the issue. The GOPATH must have a certain directory structure, as explained here: http://golang.org/doc/code.html#Workspaces I tried installing go, and my environment now is like this:
For go to work property, the project in my case, should be in a folder like this:
And the GOPATH should point to the ~/workspace, which must have the src folder. So the structure should be:
|
Were you able to get this working @fabioxgn ? I installed go-lang and run into the same problems as you. I set $GOPATH to ~/workspace/src/github.com/mikeroosa/hello from the command line but the command 'go install' gives me the GOPATH error as well. |
@mikeroosa to be honest didn't tried again. Will try it when I have the chance. |
@fabioxgn Actually, I did get it working temporarily. I typed this at the terminal export GOPATH=~/workspace How do I add that so it stays when I close the terminal and re-open? |
@mikeroosa To persist the GOPATH you just have to add it to ~/.bash_profile I configured a new box from scratch and it worked great. Step by step what I did was:
|
I am a gopher. I really like codio, so I need golang box for development.
The text was updated successfully, but these errors were encountered: