astaxie / bee

Bee is a tool for managing beego framework.
54 stars 32 forks source link

Can't create project in $GOPATH/src sub-folder #6

Closed matrixik closed 11 years ago

matrixik commented 11 years ago

Hello,

I would like to create new project in $GOPATH/src/bitbucket.org/matrixik sub-folder so that I could import controllers folder with "bitbucket.org/matrixik/beehello/controllers" instead of "beehello/controllers"

Now I see error:

D:\Golibs\my\src\bitbucket.org\matrixik>bee create beehello
can't create application outside of GOPATH
you first should `cd $GOPATH/src` then use create

It's not not very high priority, after all I can create app in $GOPATH/src, copy it to desired folder and update imports by hand.

Best regards, Dobrosław Żybort

astaxie commented 11 years ago

Now if you want use bee to create project, you should in $GOPATH/src, other folder can't support.But you suggest is reasonable. In $GOPATH/src sub-folder should support.

matrixik commented 11 years ago

On Windows it create now main.go with import looking like:

import (
    "\bitbucket.org\matrixik/beehello/controllers"
    "github.com/astaxie/beego"
) 
astaxie commented 11 years ago

fix it now, update the bee and try again

matrixik commented 11 years ago

Working now, thank you.

Best regards, Dobrosław Żybort