{"action":"created","issue":{"url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1784","repository_url":"https://api.github.com/repos/go-swagger/go-swagger","labels_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1784/labels{/name}","comments_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1784/comments","events_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1784/events","html_url":"https://github.com/go-swagger/go-swagger/issues/1784","id":377326486,"node_id":"MDU6SXNzdWUzNzczMjY0ODY=","number":1784,"title":"Swagger generate: can not import package","user":{"login":"kostiamol","id":5477699,"node_id":"MDQ6VXNlcjU0Nzc2OTk=","avatar_url":"https://avatars0.githubusercontent.com/u/5477699?v=4","gravatar_id":"","url":"https://api.github.com/users/kostiamol","html_url":"https://github.com/kostiamol","followers_url":"https://api.github.com/users/kostiamol/followers","following_url":"https://api.github.com/users/kostiamol/following{/other_user}","gists_url":"https://api.github.com/users/kostiamol/gists{/gist_id}","starred_url":"https://api.github.com/users/kostiamol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostiamol/subscriptions","organizations_url":"https://api.github.com/users/kostiamol/orgs","repos_url":"https://api.github.com/users/kostiamol/repos","events_url":"https://api.github.com/users/kostiamol/events{/privacy}","received_events_url":"https://api.github.com/users/kostiamol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-05T10:01:47Z","updated_at":"2018-11-16T11:59:49Z","closed_at":null,"author_association":"NONE","body":"## Problem statement\r\nMy project (which is in $GOPATH) is using go modules. `go build ` works without any problem.\r\nWhen I execute swagger generate I receive the error: \r\n<img width=\"624\" alt=\"capture\" src=\"https://user-images.githubusercontent.com/5477699/47990572-869cdc80-e0f0-11e8-93e3-4c969d05f190.PNG\">\r\n\r\n## Steps to reproduce\r\n`swagger generate spec -o swagger.yml\r\n`\r\n## Environment\r\nswagger version: dev\r\ngo version: 1.11.1\r\nOS: linux Ubuntu\r\n"},"comment":{"url":"https://api.github.com/repos/go-swagger/go-swagger/issues/comments/439372520","html_url":"https://github.com/go-swagger/go-swagger/issues/1784#issuecomment-439372520","issue_url":"https://api.github.com/repos/go-swagger/go-swagger/issues/1784","id":439372520,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTM3MjUyMA==","user":{"login":"ok11","id":1530712,"node_id":"MDQ6VXNlcjE1MzA3MTI=","avatar_url":"https://avatars1.githubusercontent.com/u/1530712?v=4","gravatar_id":"","url":"https://api.github.com/users/ok11","html_url":"https://github.com/ok11","followers_url":"https://api.github.com/users/ok11/followers","following_url":"https://api.github.com/users/ok11/following{/other_user}","gists_url":"https://api.github.com/users/ok11/gists{/gist_id}","starred_url":"https://api.github.com/users/ok11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ok11/subscriptions","organizations_url":"https://api.github.com/users/ok11/orgs","repos_url":"https://api.github.com/users/ok11/repos","events_url":"https://api.github.com/users/ok11/events{/privacy}","received_events_url":"https://api.github.com/users/ok11/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T11:59:49Z","updated_at":"2018-11-16T11:59:49Z","author_association":"NONE","body":"Sounds like the project must be under GOPATH for go-swagger to work, even with go modules. Is it correct? If yes, just wondering if you are going to change it. At the end the entire story of go mods is gonna eliminate the need of the GOPATH nonsense."}}
{"actor":{"display_login":"ok11"}}