{"action":"created","issue":{"url":"https://api.github.com/repos/D-Programming-Language/dub/issues/580","labels_url":"https://api.github.com/repos/D-Programming-Language/dub/issues/580/labels{/name}","comments_url":"https://api.github.com/repos/D-Programming-Language/dub/issues/580/comments","events_url":"https://api.github.com/repos/D-Programming-Language/dub/issues/580/events","html_url":"https://github.com/D-Programming-Language/dub/issues/580","id":85555363,"number":580,"title":"0.9.22 regression : build/describe \"--nodeps\" fails to find local dependency","user":{"login":"bruno-medeiros","id":4324232,"avatar_url":"https://avatars.githubusercontent.com/u/4324232?v=3","gravatar_id":"","url":"https://api.github.com/users/bruno-medeiros","html_url":"https://github.com/bruno-medeiros","followers_url":"https://api.github.com/users/bruno-medeiros/followers","following_url":"https://api.github.com/users/bruno-medeiros/following{/other_user}","gists_url":"https://api.github.com/users/bruno-medeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/bruno-medeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruno-medeiros/subscriptions","organizations_url":"https://api.github.com/users/bruno-medeiros/orgs","repos_url":"https://api.github.com/users/bruno-medeiros/repos","events_url":"https://api.github.com/users/bruno-medeiros/events{/privacy}","received_events_url":"https://api.github.com/users/bruno-medeiros/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-05T15:10:44Z","updated_at":"2015-06-10T20:21:59Z","closed_at":null,"body":"There seems to be a problem with 0.9.22 that causes `--nodeps` to not find local dependencies.\r\n\r\nTo reproduce:  \r\nGo to some test directory:\r\n```\r\n$ dub init lib\r\nSuccessfully created an empty project in 'D:\\devel\\Scratchpad.D\\DubWorkspace\\lib'.\r\n$ dub init test\r\nSuccessfully created an empty project in 'D:\\devel\\Scratchpad.D\\DubWorkspace\\test'.\r\n$ dub add-path .\r\n```\r\nNow modify test/dub.json to include this:\r\n```\r\n\t\"dependencies\": {\r\n\t\t\"lib\" : \"*\",\r\n\t},\r\n```\r\n\r\nNow if we try to describe or build with \"--nodeps\", it fails, even though the dependency is seen by dub list:\r\n\r\n```\r\n$dub describe --nodeps\r\nError executing command describe:\r\nUnknown dependency: lib\r\n$dub build --nodeps\r\nError executing command build:\r\nUnknown dependency: lib\r\n$dub list\r\nPackages present in the system and known to dub:\r\n  lib ~master: D:\\devel\\Scratchpad.D\\DubWorkspace\\lib\\\r\n  test ~master: D:\\devel\\Scratchpad.D\\DubWorkspace\\test\\\r\n```  \r\n\r\nDoing a `dub build` without `--nodeps` works, and after doing so, `--nodeps` will work as well\r\n"},"comment":{"url":"https://api.github.com/repos/D-Programming-Language/dub/issues/comments/110899764","html_url":"https://github.com/D-Programming-Language/dub/issues/580#issuecomment-110899764","issue_url":"https://api.github.com/repos/D-Programming-Language/dub/issues/580","id":110899764,"user":{"login":"bruno-medeiros","id":4324232,"avatar_url":"https://avatars.githubusercontent.com/u/4324232?v=3","gravatar_id":"","url":"https://api.github.com/users/bruno-medeiros","html_url":"https://github.com/bruno-medeiros","followers_url":"https://api.github.com/users/bruno-medeiros/followers","following_url":"https://api.github.com/users/bruno-medeiros/following{/other_user}","gists_url":"https://api.github.com/users/bruno-medeiros/gists{/gist_id}","starred_url":"https://api.github.com/users/bruno-medeiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bruno-medeiros/subscriptions","organizations_url":"https://api.github.com/users/bruno-medeiros/orgs","repos_url":"https://api.github.com/users/bruno-medeiros/repos","events_url":"https://api.github.com/users/bruno-medeiros/events{/privacy}","received_events_url":"https://api.github.com/users/bruno-medeiros/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T20:21:59Z","updated_at":"2015-06-10T20:21:59Z","body":"> Running `dub upgrade --missing-only` before building with --nodeps should achieve this without querying the online registry\r\n\r\nBut  `dub upgrade --missing-only` will query the online registry, if there are missing deps, correct? Sure, in the bug case I presented above it won't happen, because there are no missing dependencies, but that is not something I know *a priori* in the general case. \r\n\r\nBasically I have a `describe` workflow (or rather DDT has) which should work like this:\r\n* Successfully complete the describe if all deps are available locally.\r\n* Fail if there are missing deps (does not attempt to download them).\r\n\r\nThis worked with `dub describe --nodeps` in DUB 0.9.21, but is not possible in later versions. (I can use another flag, that's not a problem, I just need a way to do it)\r\n"}}