{"action":"created","issue":{"url":"https://api.github.com/repos/premake/premake-dlang/issues/1","labels_url":"https://api.github.com/repos/premake/premake-dlang/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/premake/premake-dlang/issues/1/comments","events_url":"https://api.github.com/repos/premake/premake-dlang/issues/1/events","html_url":"https://github.com/premake/premake-dlang/issues/1","id":84536216,"number":1,"title":"Provide an example ```premake5.lua```","user":{"login":"jkm","id":580522,"avatar_url":"https://avatars.githubusercontent.com/u/580522?v=3","gravatar_id":"","url":"https://api.github.com/users/jkm","html_url":"https://github.com/jkm","followers_url":"https://api.github.com/users/jkm/followers","following_url":"https://api.github.com/users/jkm/following{/other_user}","gists_url":"https://api.github.com/users/jkm/gists{/gist_id}","starred_url":"https://api.github.com/users/jkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkm/subscriptions","organizations_url":"https://api.github.com/users/jkm/orgs","repos_url":"https://api.github.com/users/jkm/repos","events_url":"https://api.github.com/users/jkm/events{/privacy}","received_events_url":"https://api.github.com/users/jkm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-03T12:31:05Z","updated_at":"2015-06-04T07:51:20Z","closed_at":null,"body":"Can you provide a sample ```premake5.lua``` compiling some D code? I have some difficulties with ```versions```.\r\n\r\n```\r\npremake5.lua:99: attempt to call global 'versions' (a nil value)\r\n```\r\n\r\nThe sample can also be used as a test case."},"comment":{"url":"https://api.github.com/repos/premake/premake-dlang/issues/comments/108769084","html_url":"https://github.com/premake/premake-dlang/issues/1#issuecomment-108769084","issue_url":"https://api.github.com/repos/premake/premake-dlang/issues/1","id":108769084,"user":{"login":"jkm","id":580522,"avatar_url":"https://avatars.githubusercontent.com/u/580522?v=3","gravatar_id":"","url":"https://api.github.com/users/jkm","html_url":"https://github.com/jkm","followers_url":"https://api.github.com/users/jkm/followers","following_url":"https://api.github.com/users/jkm/following{/other_user}","gists_url":"https://api.github.com/users/jkm/gists{/gist_id}","starred_url":"https://api.github.com/users/jkm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkm/subscriptions","organizations_url":"https://api.github.com/users/jkm/orgs","repos_url":"https://api.github.com/users/jkm/repos","events_url":"https://api.github.com/users/jkm/events{/privacy}","received_events_url":"https://api.github.com/users/jkm/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T07:51:19Z","updated_at":"2015-06-04T07:51:19Z","body":"It's not the ```require \"d\"```. I try to use ```versions``` for specifying which version to compile but it is somehow ignored. I used to use ```defines``` but that does not work anymore.\r\nIt also seems that I should now use ```imports``` instead of ```includedirs``` but ```imports``` does not work for me. Can you just upload a sample that works for you such that I can fix this and move on?"}}