{"action":"closed","issue":{"url":"https://api.github.com/repos/Debian/dh-make-golang/issues/33","labels_url":"https://api.github.com/repos/Debian/dh-make-golang/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/Debian/dh-make-golang/issues/33/comments","events_url":"https://api.github.com/repos/Debian/dh-make-golang/issues/33/events","html_url":"https://github.com/Debian/dh-make-golang/issues/33","id":122141315,"number":33,"title":"crash against package with relative import","user":{"login":"aviau","id":2706882,"avatar_url":"https://avatars.githubusercontent.com/u/2706882?v=3","gravatar_id":"","url":"https://api.github.com/users/aviau","html_url":"https://github.com/aviau","followers_url":"https://api.github.com/users/aviau/followers","following_url":"https://api.github.com/users/aviau/following{/other_user}","gists_url":"https://api.github.com/users/aviau/gists{/gist_id}","starred_url":"https://api.github.com/users/aviau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aviau/subscriptions","organizations_url":"https://api.github.com/users/aviau/orgs","repos_url":"https://api.github.com/users/aviau/repos","events_url":"https://api.github.com/users/aviau/events{/privacy}","received_events_url":"https://api.github.com/users/aviau/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-14T22:00:58Z","updated_at":"2015-12-15T18:25:30Z","closed_at":"2015-12-15T18:25:30Z","body":"Hey!\r\n\r\ndh-make-golang crashes when making a package that has a relative import.\r\n\r\nFor example:\r\n```\r\nreazem@cranberry:~/git/dh-make-golang$ dh-make-golang github.com/hpcloud/tail \r\n2015/12/14 16:58:50 Downloading \"github.com/hpcloud/tail/...\"\r\n2015/12/14 16:58:52 Determining upstream version number\r\n2015/12/14 16:58:52 Package version is \"0+git20151102.34.157f8ef\"\r\n2015/12/14 16:58:52 Determining package type\r\n2015/12/14 16:58:52 Assuming you are packaging a program (because \"github.com/hpcloud/tail/cmd/gotail\" defines a main package), use -type to override\r\n2015/12/14 16:58:52 Determining dependencies\r\ncan't load package: package ./watch: open /home/reazem/git/dh-make-golang/watch: no such file or directory\r\n2015/12/14 16:58:53 Could not create a tarball of the upstream source: exit status 1\r\n```\r\n\r\nThis is due to the following import:\r\n```\r\n\"./watch\"\r\n```\r\n\r\nI added logging and here is a part of the  ```go list``` command ran by dh-make-golang:\r\n```\r\ntime\r\n./watch\r\nfmt\r\n```\r\n\r\nI tried debugging, but I couldn't reproduce the ```go list``` output including the ```./watch``` dependency. I must be doing something wrong."}}