{"action":"opened","issue":{"url":"https://api.github.com/repos/mailgun/godebug/issues/22","labels_url":"https://api.github.com/repos/mailgun/godebug/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/mailgun/godebug/issues/22/comments","events_url":"https://api.github.com/repos/mailgun/godebug/issues/22/events","html_url":"https://github.com/mailgun/godebug/issues/22","id":74475553,"number":22,"title":"\"no buildable Go source files\"","user":{"login":"jeremyschlatter","id":5741620,"avatar_url":"https://avatars.githubusercontent.com/u/5741620?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremyschlatter","html_url":"https://github.com/jeremyschlatter","followers_url":"https://api.github.com/users/jeremyschlatter/followers","following_url":"https://api.github.com/users/jeremyschlatter/following{/other_user}","gists_url":"https://api.github.com/users/jeremyschlatter/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremyschlatter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremyschlatter/subscriptions","organizations_url":"https://api.github.com/users/jeremyschlatter/orgs","repos_url":"https://api.github.com/users/jeremyschlatter/repos","events_url":"https://api.github.com/users/jeremyschlatter/events{/privacy}","received_events_url":"https://api.github.com/users/jeremyschlatter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mailgun/godebug/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-08T19:56:24Z","updated_at":"2015-05-08T19:56:24Z","closed_at":null,"body":"Given this directory structure:\r\n\r\n```\r\na $ tree\r\n.\r\n├── a.go\r\n└── b\r\n    ├── b.go\r\n    └── c\r\n        └── c.go\r\n\r\n2 directories, 3 files\r\n```\r\n\r\n```\r\na $ cat a.go\r\npackage main\r\n\r\nimport (\r\n\t\"a/b\"\r\n\t\"a/b/c\"\r\n)\r\n\r\nfunc main() {\r\n\tb.B()\r\n\tc.C()\r\n}\r\n```\r\n\r\n```\r\na $ cat b/b.go\r\npackage b\r\n\r\nfunc B() {\r\n\tprintln(\"B\")\r\n}\r\n```\r\n\r\n```\r\n a $ cat b/c/c.go\r\npackage c\r\n\r\nfunc C() {\r\n\t_ = \"breakpoint\"\r\n\tprintln(\"C\")\r\n}\r\n```\r\n\r\nRunning godebug without `-instrument` gives a helpful warning:\r\n\r\n```\r\n a $ godebug run a.go\r\ngodebug run: Ignoring breakpoint at a/b/c/c.go:4 because package \"c\" has not been flagged for instrumentation. See 'godebug help run'.\r\n\r\nB\r\nC\r\n```\r\n\r\nBut the -instrument flag does not work as expected:\r\n\r\n```\r\n$ godebug run -instrument a/b/c a.go\r\n/var/folders/4l/d1lsmz5d4972rfkg1gvv8hmc0000gn/T/godebug895759339/a.go:4:2: no buildable Go source files in /var/folders/4l/d1lsmz5d4972rfkg1gvv8hmc0000gn/T/godebug895759339/src/a/b\r\n```"}}