{"action":"opened","issue":{"url":"https://api.github.com/repos/adtac/commento/issues/161","repository_url":"https://api.github.com/repos/adtac/commento","labels_url":"https://api.github.com/repos/adtac/commento/issues/161/labels{/name}","comments_url":"https://api.github.com/repos/adtac/commento/issues/161/comments","events_url":"https://api.github.com/repos/adtac/commento/issues/161/events","html_url":"https://github.com/adtac/commento/issues/161","id":306117570,"number":161,"title":"Missing packages during build... cannot find package \"github.com/joho/godotenv\"","user":{"login":"DoctorBud","id":2450553,"avatar_url":"https://avatars3.githubusercontent.com/u/2450553?v=4","gravatar_id":"","url":"https://api.github.com/users/DoctorBud","html_url":"https://github.com/DoctorBud","followers_url":"https://api.github.com/users/DoctorBud/followers","following_url":"https://api.github.com/users/DoctorBud/following{/other_user}","gists_url":"https://api.github.com/users/DoctorBud/gists{/gist_id}","starred_url":"https://api.github.com/users/DoctorBud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoctorBud/subscriptions","organizations_url":"https://api.github.com/users/DoctorBud/orgs","repos_url":"https://api.github.com/users/DoctorBud/repos","events_url":"https://api.github.com/users/DoctorBud/events{/privacy}","received_events_url":"https://api.github.com/users/DoctorBud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-17T01:33:04Z","updated_at":"2018-03-17T01:33:04Z","closed_at":null,"author_association":"NONE","body":"I'm building via `go build`, and I got the following errors:\r\n```bash\r\nconfig.go:4:2: cannot find package \"github.com/joho/godotenv\" in any of:\r\n\t/usr/local/Cellar/go/1.10/libexec/src/github.com/joho/godotenv (from $GOROOT)\r\n\t/Users/myuser/go/src/github.com/joho/godotenv (from $GOPATH)\r\nmain.go:8:2: cannot find package \"github.com/mattn/go-sqlite3\" in any of:\r\n\t/usr/local/Cellar/go/1.10/libexec/src/github.com/mattn/go-sqlite3 (from $GOROOT)\r\n\t/Users/myuser/go/src/github.com/mattn/go-sqlite3 (from $GOPATH)\r\nmain.go:9:2: cannot find package \"github.com/op/go-logging\" in any of:\r\n\t/usr/local/Cellar/go/1.10/libexec/src/github.com/op/go-logging (from $GOROOT)\r\n\t/Users/myuser/go/src/github.com/op/go-logging (from $GOPATH)\r\n```\r\n\r\nI fixed the problem by installing the dependencies with:\r\n\r\n```bash\r\ngo get github.com/joho/godotenv github.com/mattn/go-sqlite3 github.com/op/go-logging\r\n```\r\n\r\nand now the build succeeds. So I have a workaround.\r\n\r\nI'm not a Go programmer, so I'm not sure of the correct fix. Presumably some config file needs to be changed to make these dependencies explicit. I'm creating this issue mostly for anyone else who runs into this.\r\n"}}
{"actor":{"display_login":"DoctorBud"}}