{"action":"closed","issue":{"url":"https://api.github.com/repos/maxbrunsfeld/counterfeiter/issues/39","repository_url":"https://api.github.com/repos/maxbrunsfeld/counterfeiter","labels_url":"https://api.github.com/repos/maxbrunsfeld/counterfeiter/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/maxbrunsfeld/counterfeiter/issues/39/comments","events_url":"https://api.github.com/repos/maxbrunsfeld/counterfeiter/issues/39/events","html_url":"https://github.com/maxbrunsfeld/counterfeiter/issues/39","id":154614324,"number":39,"title":"packages in a directory with a hyphen in the last part, cause a Node.format error","user":{"login":"esteban-herrera","id":14844290,"avatar_url":"https://avatars.githubusercontent.com/u/14844290?v=3","gravatar_id":"","url":"https://api.github.com/users/esteban-herrera","html_url":"https://github.com/esteban-herrera","followers_url":"https://api.github.com/users/esteban-herrera/followers","following_url":"https://api.github.com/users/esteban-herrera/following{/other_user}","gists_url":"https://api.github.com/users/esteban-herrera/gists{/gist_id}","starred_url":"https://api.github.com/users/esteban-herrera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esteban-herrera/subscriptions","organizations_url":"https://api.github.com/users/esteban-herrera/orgs","repos_url":"https://api.github.com/users/esteban-herrera/repos","events_url":"https://api.github.com/users/esteban-herrera/events{/privacy}","received_events_url":"https://api.github.com/users/esteban-herrera/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-13T01:15:45Z","updated_at":"2016-05-13T06:19:02Z","closed_at":"2016-05-13T06:19:02Z","body":"I have a package 'bar' defined in a project/foo-bar/bar.go\r\n\r\nWhen trying to run counterfeit\r\n`$ counterfeiter project/foo-bar Bar`\r\nI get `format.Node internal error (1:12: expected ':' , found '-')`\r\n\r\nThis comes from line 59 in this file https://golang.org/src/go/format/format.go\r\nI believe this is cause by the way the fake package name is created by parsing directories and package name.\r\n\r\nThe commit that introduced this behavior is 9db5229bab742fd6b9e0b4a27bd379c4fcbf0668\r\n\r\nI plan on digging into it this weekend and making a PR, but feel free to beat me to it."}}