{"action":"created","issue":{"url":"https://api.github.com/repos/nexusdev/dapple/issues/288","repository_url":"https://api.github.com/repos/nexusdev/dapple","labels_url":"https://api.github.com/repos/nexusdev/dapple/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/nexusdev/dapple/issues/288/comments","events_url":"https://api.github.com/repos/nexusdev/dapple/issues/288/events","html_url":"https://github.com/nexusdev/dapple/issues/288","id":169898278,"number":288,"title":"Ability to put subpackages directly in the root of the package directory","user":{"login":"dbrock","id":14032,"avatar_url":"https://avatars.githubusercontent.com/u/14032?v=3","gravatar_id":"","url":"https://api.github.com/users/dbrock","html_url":"https://github.com/dbrock","followers_url":"https://api.github.com/users/dbrock/followers","following_url":"https://api.github.com/users/dbrock/following{/other_user}","gists_url":"https://api.github.com/users/dbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/dbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbrock/subscriptions","organizations_url":"https://api.github.com/users/dbrock/orgs","repos_url":"https://api.github.com/users/dbrock/repos","events_url":"https://api.github.com/users/dbrock/events{/privacy}","received_events_url":"https://api.github.com/users/dbrock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-08T11:10:52Z","updated_at":"2016-08-08T12:45:45Z","closed_at":null,"body":"It would be nice if you didn't have to use the somewhat clunky `dapple_packages` (which also conflicts with `dappfile` tab-complete-wise) subdirectory to house your subpackages. Especially since many packages will only even have one or two dependencies (such as `erc20`).\r\n\r\nI usually edit my subpackages directly and use them as any normal git repository, so I am constantly navigating up and down the dependency tree and navigating all the extra `dapple_packages` subdirectories that are duplicated everywhere gets old pretty quickly.\r\n\r\nAlas, what currently happens if you try to do this is that you get an error such as this:\r\n```\r\nError: Unable to resolve import path 'erc20/erc20.sol' in file 'contracts/feedbase.sol'\r\n    at Function.resolveImport (/dapple/lib/linker.js:47:11)\r\n    at linked.(anonymous function).source.replace (/dapple/lib/linker.js:83:35)\r\n    at RegExp.[Symbol.replace] (native)\r\n    at String.replace (native)\r\n    at Function.linkImports (/dapple/lib/linker.js:81:33)\r\n    at Function.link (/dapple/lib/linker.js:14:36)\r\n    at DestroyableTransform._flush (/dapple/lib/streams/linker.js:19:32)\r\n    at DestroyableTransform.g (events.js:286:16)\r\n    at emitNone (events.js:86:13)\r\n```\r\n\r\nI tried briefly to figure out how to add this but no obvious solution presented itself during my vision quest.\r\n"},"comment":{"url":"https://api.github.com/repos/nexusdev/dapple/issues/comments/238224542","html_url":"https://github.com/nexusdev/dapple/issues/288#issuecomment-238224542","issue_url":"https://api.github.com/repos/nexusdev/dapple/issues/288","id":238224542,"user":{"login":"mhhf","id":446478,"avatar_url":"https://avatars.githubusercontent.com/u/446478?v=3","gravatar_id":"","url":"https://api.github.com/users/mhhf","html_url":"https://github.com/mhhf","followers_url":"https://api.github.com/users/mhhf/followers","following_url":"https://api.github.com/users/mhhf/following{/other_user}","gists_url":"https://api.github.com/users/mhhf/gists{/gist_id}","starred_url":"https://api.github.com/users/mhhf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhhf/subscriptions","organizations_url":"https://api.github.com/users/mhhf/orgs","repos_url":"https://api.github.com/users/mhhf/repos","events_url":"https://api.github.com/users/mhhf/events{/privacy}","received_events_url":"https://api.github.com/users/mhhf/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T12:45:45Z","updated_at":"2016-08-08T12:45:45Z","body":"what abut an equivalent of `npm link` command which creates an alias? then you could store your subpackages wherever you want.\r\nas for the directory name: dapple v0.8 uses a local `.dapple` directory. We can move the package directory there (e.g. `./dapple/packages/`)"}}
{"actor":{"display_login":"mhhf"}}