{"action":"created","issue":{"url":"https://api.github.com/repos/vincentbernat/hellogopher/issues/13","repository_url":"https://api.github.com/repos/vincentbernat/hellogopher","labels_url":"https://api.github.com/repos/vincentbernat/hellogopher/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/vincentbernat/hellogopher/issues/13/comments","events_url":"https://api.github.com/repos/vincentbernat/hellogopher/issues/13/events","html_url":"https://github.com/vincentbernat/hellogopher/issues/13","id":304921263,"number":13,"title":"How to use go generate?","user":{"login":"pshevtsov","id":290451,"avatar_url":"https://avatars1.githubusercontent.com/u/290451?v=4","gravatar_id":"","url":"https://api.github.com/users/pshevtsov","html_url":"https://github.com/pshevtsov","followers_url":"https://api.github.com/users/pshevtsov/followers","following_url":"https://api.github.com/users/pshevtsov/following{/other_user}","gists_url":"https://api.github.com/users/pshevtsov/gists{/gist_id}","starred_url":"https://api.github.com/users/pshevtsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pshevtsov/subscriptions","organizations_url":"https://api.github.com/users/pshevtsov/orgs","repos_url":"https://api.github.com/users/pshevtsov/repos","events_url":"https://api.github.com/users/pshevtsov/events{/privacy}","received_events_url":"https://api.github.com/users/pshevtsov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-03-13T20:22:03Z","updated_at":"2018-03-14T13:47:33Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I have one file with `//go generate: go run gen.go` and that `gen.go` file imports one package from `vendor`. I added the following target to my `Makefile`:\r\n\r\n```Makefile\r\n.PHONY: generate\r\ngenerate: vendor | $(BASE) ; $(info $(M) running go generate…) @ ## Run go generate\r\n\t$Q cd $(BASE) && $(GO) generate ./...\r\n```\r\n\r\nHowever, when I try to run `make generate` I get the following error:\r\n\r\n```console\r\n$ make generate\r\n▶ running go generate…\r\ngen.go:30:2: cannot find package \"github.com/foo/bar\" in any of:\r\n        /usr/lib/go-1.10/src/github.com/foo/bar (from $GOROOT)\r\n        /tmp/tidal/.gopath~/src/github.com/foo/bar (from $GOPATH)\r\npkg/suboackage/source.go:21: running \"go\": exit status 1\r\nmake: *** [Makefile:154: generate] Error 1\r\n```\r\n\r\nPlease advice how to use `go generate`."},"comment":{"url":"https://api.github.com/repos/vincentbernat/hellogopher/issues/comments/373026273","html_url":"https://github.com/vincentbernat/hellogopher/issues/13#issuecomment-373026273","issue_url":"https://api.github.com/repos/vincentbernat/hellogopher/issues/13","id":373026273,"user":{"login":"vincentbernat","id":631446,"avatar_url":"https://avatars2.githubusercontent.com/u/631446?v=4","gravatar_id":"","url":"https://api.github.com/users/vincentbernat","html_url":"https://github.com/vincentbernat","followers_url":"https://api.github.com/users/vincentbernat/followers","following_url":"https://api.github.com/users/vincentbernat/following{/other_user}","gists_url":"https://api.github.com/users/vincentbernat/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentbernat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentbernat/subscriptions","organizations_url":"https://api.github.com/users/vincentbernat/orgs","repos_url":"https://api.github.com/users/vincentbernat/repos","events_url":"https://api.github.com/users/vincentbernat/events{/privacy}","received_events_url":"https://api.github.com/users/vincentbernat/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T13:47:33Z","updated_at":"2018-03-14T13:47:33Z","author_association":"OWNER","body":"For some reason, it seems to find the package in two distinct locations that are linked by symlinks. Are you working in `/tmp/tidal` or `/home/petr/go/src/tidal`?"}}
{"actor":{"display_login":"vincentbernat"}}