ipfans / echo-session

Package echo-session is a middleware that provides session support for echo.
Apache License 2.0
67 stars 36 forks source link

Invalid code in session.go #12

Closed chrisprobst closed 7 years ago

chrisprobst commented 7 years ago

Latest commit just broke the entire library:

https://github.com/ipfans/echo-session/blob/master/session.go#L67

Your current head IS NOT compatible with echo v3. There is no Writer() function. Please fix and revert. Your lib is broken now!

CHECK: https://github.com/labstack/echo/blob/master/response.go#L14

ijust commented 7 years ago

Latest commit is pre-release. https://github.com/labstack/echo/releases

In stable latest release, it is compatible. https://github.com/labstack/echo/blob/v3.0.3/response.go#L14

Fix this problem, Please not revert and set git tags for vendoring properly.

ipfans commented 7 years ago

I think it is a good point that golang need a package management tool. 😄

If you use glide(or other package management tool like dep ), please use v3.0.0-rc1 instead of master branch.

carynova commented 7 years ago

to fix it just delete the '()' s := &session{name, rq, store, nil, false, rs.Writer}

meekmichael commented 7 years ago

Could a v3.0.0-rc2 be made with this PR plus the current master with the Postgres session code in it?