{"action":"created","issue":{"url":"https://api.github.com/repos/jingweno/nut/issues/17","labels_url":"https://api.github.com/repos/jingweno/nut/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/jingweno/nut/issues/17/comments","events_url":"https://api.github.com/repos/jingweno/nut/issues/17/events","html_url":"https://github.com/jingweno/nut/issues/17","id":65063065,"number":17,"title":"Error `no buildable Go source files ...` when no go file on repo root","user":{"login":"evalphobia","id":2827521,"avatar_url":"https://avatars.githubusercontent.com/u/2827521?v=3","gravatar_id":"","url":"https://api.github.com/users/evalphobia","html_url":"https://github.com/evalphobia","followers_url":"https://api.github.com/users/evalphobia/followers","following_url":"https://api.github.com/users/evalphobia/following{/other_user}","gists_url":"https://api.github.com/users/evalphobia/gists{/gist_id}","starred_url":"https://api.github.com/users/evalphobia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evalphobia/subscriptions","organizations_url":"https://api.github.com/users/evalphobia/orgs","repos_url":"https://api.github.com/users/evalphobia/repos","events_url":"https://api.github.com/users/evalphobia/events{/privacy}","received_events_url":"https://api.github.com/users/evalphobia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-29T13:48:07Z","updated_at":"2015-03-30T15:19:13Z","closed_at":null,"body":"## facts\r\n\r\nWhen no go source files on repository root, `go get` emits an error like below.\r\n\r\n```sh\r\n$ nut install\r\n\r\nDownloading foo/bar@1234abcd\r\nVendoring dependencies\r\n\r\npackage foo/bar \r\n    imports foo/bar:  no buildable Go source files in /var/folders/xx/xxx/xx/src/foo/bar\r\n```\r\n\r\n## problems\r\n\r\nsome repository does not contain any go files on its directory root.\r\n\r\nFor example: https://github.com/awslabs/aws-sdk-go/\r\n\r\n```toml\r\n[dependencies]\r\n\r\n# Below this doesn't work\r\n# \"github.com/awslabs/aws-sdk-go\" = \"8753e85c61243cf9c31ac5cafa6596dfc77d2a24\"\r\n\r\n# Do I have to write every package recursively?\r\n\"github.com/awslabs/aws-sdk-go/aws\" = \"8753e85c61243cf9c31ac5cafa6596dfc77d2a24\"\r\n\"github.com/awslabs/aws-sdk-go/apis/config\" = \"8753e85c61243cf9c31ac5cafa6596dfc77d2a24\"\r\n\"github.com/awslabs/aws-sdk-go/apis/dynamodb\" = \"8753e85c61243cf9c31ac5cafa6596dfc77d2a24\"\r\n\"github.com/awslabs/aws-sdk-go/internal/endpoints\" = \"8753e85c61243cf9c31ac5cafa6596dfc77d2a24\"\r\n\"github.com/awslabs/aws-sdk-go/internal/protocol/query\" = \"8753e85c61243cf9c31ac5cafa6596dfc77d2a24\"\r\n\"github.com/awslabs/aws-sdk-go/...\" = \"...\"\r\n```\r\n\r\nI know this error is from `go get`, but it's difficult and tedious to write each dirs on `Nut.toml`.\r\nAny option or flag to avoid this?\r\n\r\nthanks,"},"comment":{"url":"https://api.github.com/repos/jingweno/nut/issues/comments/87720437","html_url":"https://github.com/jingweno/nut/issues/17#issuecomment-87720437","issue_url":"https://api.github.com/repos/jingweno/nut/issues/17","id":87720437,"user":{"login":"jingweno","id":169064,"avatar_url":"https://avatars.githubusercontent.com/u/169064?v=3","gravatar_id":"","url":"https://api.github.com/users/jingweno","html_url":"https://github.com/jingweno","followers_url":"https://api.github.com/users/jingweno/followers","following_url":"https://api.github.com/users/jingweno/following{/other_user}","gists_url":"https://api.github.com/users/jingweno/gists{/gist_id}","starred_url":"https://api.github.com/users/jingweno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jingweno/subscriptions","organizations_url":"https://api.github.com/users/jingweno/orgs","repos_url":"https://api.github.com/users/jingweno/repos","events_url":"https://api.github.com/users/jingweno/events{/privacy}","received_events_url":"https://api.github.com/users/jingweno/received_events","type":"User","site_admin":false},"created_at":"2015-03-30T15:19:13Z","updated_at":"2015-03-30T15:19:13Z","body":"Declaring with just the repository and SHA should work and I just verified it:\r\n\r\n```\r\n[dependencies]\r\n\r\n\"github.com/awslabs/aws-sdk-go\" = \"8753e85c61243cf9c31ac5cafa6596dfc77d2a24\"\r\n```\r\n\r\nWith your latest contribution on https://github.com/jingweno/nut/pull/18, the above should be working - previously `git-clone` downloads the package to the wrong folder so it triggers a `go-get`."}}