astaxie / beegae

beego for GAE
Other
38 stars 11 forks source link

beegae not go getable #6

Closed zaibon closed 10 years ago

zaibon commented 10 years ago
go get github.com/astaxie/beegae
# github.com/astaxie/beegae/session
beegae/session/sess_cookie.go:171: cannot use cookiepder (type *CookieProvider) as type Provider in function argument:
    *CookieProvider does not implement Provider (wrong type for SessionDestroy method)
        have SessionDestroy(string) error
        want SessionDestroy(string, "appengine".Context) error
beegae/session/sess_mysql.go:199: cannot use mysqlpder (type *MysqlProvider) as type Provider in function argument:
    *MysqlProvider does not implement Provider (wrong type for SessionDestroy method)
        have SessionDestroy(string) error
        want SessionDestroy(string, "appengine".Context) error
someone1 commented 10 years ago

You need to use goapp provided by the AppEngine SDK:

go_appengine/goapp get github.com/astaxie/beegae

Additionally, the only supported session provider is the appengine provider. I left the other source files in there with the intention of enabling support for them in future releases of beegae. They all have buildflags included so that they are not compiled by the AppEngine SDK.

Let me know if that helps!

zaibon commented 10 years ago

it works with goapp thanks for the hint