{"action":"closed","issue":{"url":"https://api.github.com/repos/GoIncremental/negroni-sessions/issues/7","labels_url":"https://api.github.com/repos/GoIncremental/negroni-sessions/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/GoIncremental/negroni-sessions/issues/7/comments","events_url":"https://api.github.com/repos/GoIncremental/negroni-sessions/issues/7/events","html_url":"https://github.com/GoIncremental/negroni-sessions/issues/7","id":52858388,"number":7,"title":"Calling NewCookieStore breaks Docker Build Of Any Project Using Negroni-Sessions","user":{"login":"fabioberger","id":2151492,"avatar_url":"https://avatars.githubusercontent.com/u/2151492?v=3","gravatar_id":"","url":"https://api.github.com/users/fabioberger","html_url":"https://github.com/fabioberger","followers_url":"https://api.github.com/users/fabioberger/followers","following_url":"https://api.github.com/users/fabioberger/following{/other_user}","gists_url":"https://api.github.com/users/fabioberger/gists{/gist_id}","starred_url":"https://api.github.com/users/fabioberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabioberger/subscriptions","organizations_url":"https://api.github.com/users/fabioberger/orgs","repos_url":"https://api.github.com/users/fabioberger/repos","events_url":"https://api.github.com/users/fabioberger/events{/privacy}","received_events_url":"https://api.github.com/users/fabioberger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-12-25T10:36:39Z","updated_at":"2015-01-07T09:31:23Z","closed_at":"2015-01-07T09:31:23Z","body":"Hi there,\r\n\r\nI've recently been trying to deploy my web app using Docker with the following Dockerfile:\r\n\r\n```\r\nFROM golang:onbuild\r\nEXPOSE 4000\r\n```\r\n\r\nWhen I run: ```docker build -t test .``` in my negroni project directory I get the following error:\r\n\r\n```\r\n# app\r\n./main.go:13: undefined: \"github.com/goincremental/negroni-sessions\".NewCookieStore\r\n```\r\n\r\nthe sample app is:\r\n\r\n```\r\npackage main\r\n\r\nimport (\r\n\t\"net/http\"\r\n\r\n\t\"github.com/codegangsta/negroni\"\r\n\t\"github.com/goincremental/negroni-sessions\"\r\n)\r\n\r\nfunc main() {\r\n\tn := negroni.Classic()\r\n\r\n\tstore := sessions.NewCookieStore([]byte(\"secret123\"))\r\n\tn.Use(sessions.Sessions(\"my_session\", store))\r\n\r\n\tmux := http.NewServeMux()\r\n\tmux.HandleFunc(\"/\", func(w http.ResponseWriter, req *http.Request) {\r\n\t\tsession := sessions.GetSession(req)\r\n\t\tsession.Set(\"hello\", \"world\")\r\n\t})\r\n\r\n\tn.UseHandler(mux)\r\n\tn.Run(\":4000\")\r\n}\r\n\r\n```\r\n\r\n The app runs normally on my local computer. \r\n\r\nAny idea why this might be happening? Thanks!\r\n"}}