{"action":"created","issue":{"url":"https://api.github.com/repos/Debian/dh-make-golang/issues/22","labels_url":"https://api.github.com/repos/Debian/dh-make-golang/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/Debian/dh-make-golang/issues/22/comments","events_url":"https://api.github.com/repos/Debian/dh-make-golang/issues/22/events","html_url":"https://github.com/Debian/dh-make-golang/issues/22","id":105495481,"number":22,"title":"Consider handling the case where upstream created a lightweight version tag by mistake","user":{"login":"anthonyfok","id":1274764,"avatar_url":"https://avatars.githubusercontent.com/u/1274764?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonyfok","html_url":"https://github.com/anthonyfok","followers_url":"https://api.github.com/users/anthonyfok/followers","following_url":"https://api.github.com/users/anthonyfok/following{/other_user}","gists_url":"https://api.github.com/users/anthonyfok/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonyfok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonyfok/subscriptions","organizations_url":"https://api.github.com/users/anthonyfok/orgs","repos_url":"https://api.github.com/users/anthonyfok/repos","events_url":"https://api.github.com/users/anthonyfok/events{/privacy}","received_events_url":"https://api.github.com/users/anthonyfok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-09T00:42:43Z","updated_at":"2015-11-26T10:32:56Z","closed_at":null,"body":"Nothing wrong with `dh-make-golang`, but in case issues like russross/blackfriday#196 turn out to be more common in the future, perhaps `dh-make-golang` could try to give a warning or workaround them too?  :-)"},"comment":{"url":"https://api.github.com/repos/Debian/dh-make-golang/issues/comments/159871807","html_url":"https://github.com/Debian/dh-make-golang/issues/22#issuecomment-159871807","issue_url":"https://api.github.com/repos/Debian/dh-make-golang/issues/22","id":159871807,"user":{"login":"anthonyfok","id":1274764,"avatar_url":"https://avatars.githubusercontent.com/u/1274764?v=3","gravatar_id":"","url":"https://api.github.com/users/anthonyfok","html_url":"https://github.com/anthonyfok","followers_url":"https://api.github.com/users/anthonyfok/followers","following_url":"https://api.github.com/users/anthonyfok/following{/other_user}","gists_url":"https://api.github.com/users/anthonyfok/gists{/gist_id}","starred_url":"https://api.github.com/users/anthonyfok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anthonyfok/subscriptions","organizations_url":"https://api.github.com/users/anthonyfok/orgs","repos_url":"https://api.github.com/users/anthonyfok/repos","events_url":"https://api.github.com/users/anthonyfok/events{/privacy}","received_events_url":"https://api.github.com/users/anthonyfok/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T10:32:56Z","updated_at":"2015-11-26T10:32:56Z","body":"Hello @stapelberg,\r\n\r\nSorry for the late reply.  I left this issue for quite some time, and finally worked on it about a month ago, but then got distracted and forgot to do the final testing and send a pull request.\r\n\r\nAnyhow, I think I finally got a working patch in Pull Request #29.  Here are two GitHub repositories that I used for testing:\r\n\r\n1. My outdated fork of russross/blackfriday.  This fork still contains the unannotated \"v1.2\" tag which Russ has since recreated as an annotated one:\r\n\r\n    ```\r\n$ dh-make-golang github.com/anthonyfok/blackfriday\r\n2015/11/26 02:56:16 Downloading \"github.com/anthonyfok/blackfriday/...\"\r\n2015/11/26 02:56:25 Determining upstream version number\r\n2015/11/26 02:56:25 WARNING: Lightweight tag \"v1.2\" found, but the most recent annotated tag is \"v1.1\"\r\n2015/11/26 02:56:25 Package version is \"1.2+git20150112.36.7001890\"\r\n```\r\n\r\n2. This is identical to the above, except I deleted the annotated tags \"v1.0\" and \"v1.1\" before pushing it to GitHub, leaving only one tag, the unannotated \"v1.2\" tag:\r\n\r\n    ```\r\n$ dh-make-golang github.com/anthonyfok/blackfriday-lightweight-tag\r\n2015/11/26 03:04:15 Downloading \"github.com/anthonyfok/blackfriday-lightweight-tag/...\"\r\n2015/11/26 03:04:34 Determining upstream version number\r\n2015/11/26 03:04:34 INFO: Annotated tag not found, using lightweight tag \"v1.2\"\r\n2015/11/26 03:04:34 Package version is \"1.2+git20150112.36.7001890\"\r\n```\r\n\r\nCheers,\r\nAnthony"}}