{"action":"created","issue":{"url":"https://api.github.com/repos/dlang/dub/issues/1628","repository_url":"https://api.github.com/repos/dlang/dub","labels_url":"https://api.github.com/repos/dlang/dub/issues/1628/labels{/name}","comments_url":"https://api.github.com/repos/dlang/dub/issues/1628/comments","events_url":"https://api.github.com/repos/dlang/dub/issues/1628/events","html_url":"https://github.com/dlang/dub/issues/1628","id":394179150,"node_id":"MDU6SXNzdWUzOTQxNzkxNTA=","number":1628,"title":"dependencies specified in \"configurations\" get ignored under certain conditions","user":{"login":"0xEAB","id":15967408,"node_id":"MDQ6VXNlcjE1OTY3NDA4","avatar_url":"https://avatars2.githubusercontent.com/u/15967408?v=4","gravatar_id":"","url":"https://api.github.com/users/0xEAB","html_url":"https://github.com/0xEAB","followers_url":"https://api.github.com/users/0xEAB/followers","following_url":"https://api.github.com/users/0xEAB/following{/other_user}","gists_url":"https://api.github.com/users/0xEAB/gists{/gist_id}","starred_url":"https://api.github.com/users/0xEAB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xEAB/subscriptions","organizations_url":"https://api.github.com/users/0xEAB/orgs","repos_url":"https://api.github.com/users/0xEAB/repos","events_url":"https://api.github.com/users/0xEAB/events{/privacy}","received_events_url":"https://api.github.com/users/0xEAB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-12-26T14:31:32Z","updated_at":"2018-12-26T15:07:52Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nPlease search for existing solutions to your problem before filling out this bug report template.\r\n\r\n- Issue list: https://github.com/dlang/dub/issues?q=is%3Aissue\r\n- Cookbook: https://github.com/dlang/dub/wiki/Cookbook\r\n- Stack Overflow: https://stackoverflow.com/questions/tagged/dub\r\n-->\r\n\r\n### System information\r\n<!-- replace examples with your info -->\r\n- **dub version**: `1.12.0-beta.1+8-g53128fb`\r\n- **OS Platform and distribution**: Linux 4.15, Ubuntu 18.04\r\n- **compiler version** *irrelevant*\r\n\r\n### Bug Description\r\nDUB ignores `dependencies` specified in `configurations` under certain conditions. Haven't found out, what exactly are these conditions, though. But I can name some packages that work as expected and 1.5 that don't.\r\n\r\n#### works\r\n  - `eventsystem`\r\n  - `vibe-d`\r\n\r\n#### doesn't work\r\n  - `arsd-official:simpledisplay`\r\n  - `arsd-official`\r\n\r\n### How to reproduce?\r\n\r\n#### `./dub.json`\r\n```json\r\n{\r\n    \"name\": \"my-funky-library\",\r\n    \"configurations\": [\r\n        {\r\n            \"name\": \"allright\",\r\n            \"excludedSourceFiles\": [\r\n                \"source/support/simpledisplay.d\",\r\n                \"source/support/event.d\"\r\n            ]\r\n        },\r\n        {\r\n            \"name\": \"why-dub-why\",\r\n            \"excludedSourceFiles\": [\r\n                \"source/support/event.d\"\r\n            ],\r\n            \"dependencies\": {\r\n                \"arsd-official:simpledisplay\": \"~>2.1.3\"\r\n            }\r\n        },\r\n        {\r\n            \"name\": \"weird\",            \r\n            \"excludedSourceFiles\": [\r\n                \"source/support/simpledisplay.d\"\r\n            ],\r\n            \"dependencies\": {\r\n                \"eventsystem\": \"~>1.2.0\"\r\n            }\r\n        },\r\n        {\r\n            \"name\": \"lets-retry\",\r\n            \"excludedSourceFiles\": [\r\n                \"source/support/event.d\"\r\n            ],\r\n            \"dependencies\": {\r\n                \"arsd-official\": \"~>2.1.3\"\r\n            }\r\n        },\r\n    ]\r\n}\r\n```\r\n#### `./examples/hello-bug/dub.json`\r\n```json\r\n{\r\n    \"name\": \"hello-bug\",\r\n    \"dependencies\": {\"my-funky-library\": {\"path\": \"../../\"}},\r\n    \"subConfigurations\": {\"my-funky-library\": \"why-dub-why\"},\r\n    \"sourceFiles\": [\"app.d\"],\r\n    \"targetType\": \"executable\"\r\n}\r\n```\r\n\r\n#### `./examples/hello-stillabug/dub.json`\r\n```json\r\n{\r\n    \"name\": \"hello-stillabug\",\r\n    \"dependencies\": {\"my-funky-library\": {\"path\": \"../../\"}},\r\n    \"subConfigurations\": {\"my-funky-library\": \"lets-retry\"},\r\n    \"sourceFiles\": [\"app.d\"],\r\n    \"targetType\": \"executable\"\r\n}\r\n```\r\n\r\n#### `./examples/hello-nobub/dub.json`\r\n*This one works fine.*\r\n```json\r\n{\r\n    \"name\": \"hello-nobug\",\r\n    \"dependencies\": {\"my-funky-library\": {\"path\": \"../../\"}},\r\n    \"subConfigurations\": {\"my-funky-library\": \"weird\"},\r\n    \"sourceFiles\": [\"app.d\"],\r\n    \"targetType\": \"executable\"\r\n}\r\n```\r\n\r\n### Expected Behavior\r\nAll configurations should fetch dependencies and build fine when specified as `subConfiguration` in another package."},"comment":{"url":"https://api.github.com/repos/dlang/dub/issues/comments/449978962","html_url":"https://github.com/dlang/dub/issues/1628#issuecomment-449978962","issue_url":"https://api.github.com/repos/dlang/dub/issues/1628","id":449978962,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTk3ODk2Mg==","user":{"login":"0xEAB","id":15967408,"node_id":"MDQ6VXNlcjE1OTY3NDA4","avatar_url":"https://avatars2.githubusercontent.com/u/15967408?v=4","gravatar_id":"","url":"https://api.github.com/users/0xEAB","html_url":"https://github.com/0xEAB","followers_url":"https://api.github.com/users/0xEAB/followers","following_url":"https://api.github.com/users/0xEAB/following{/other_user}","gists_url":"https://api.github.com/users/0xEAB/gists{/gist_id}","starred_url":"https://api.github.com/users/0xEAB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0xEAB/subscriptions","organizations_url":"https://api.github.com/users/0xEAB/orgs","repos_url":"https://api.github.com/users/0xEAB/repos","events_url":"https://api.github.com/users/0xEAB/events{/privacy}","received_events_url":"https://api.github.com/users/0xEAB/received_events","type":"User","site_admin":false},"created_at":"2018-12-26T15:07:52Z","updated_at":"2018-12-26T15:07:52Z","author_association":"NONE","body":"### Reproductions instructions\r\n\r\n1. Download the [example project](https://github.com/dlang/dub/files/2710381/dub-issue-1628.zip)\r\n2. Unzip it\r\n3. Open the examples directory\r\n4. Choose one of the broken ones: `hello-bug` or `hello-stillabug`\r\n5. `dub build`\r\n\r\n6. See `hello-workaround` for a workaround.\r\n7. See `hello-nobug` to check a case where everything works fine."}}
{"actor":{"display_login":"0xEAB"}}