{"action":"opened","issue":{"url":"https://api.github.com/repos/malept/thermite/issues/19","repository_url":"https://api.github.com/repos/malept/thermite","labels_url":"https://api.github.com/repos/malept/thermite/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/malept/thermite/issues/19/comments","events_url":"https://api.github.com/repos/malept/thermite/issues/19/events","html_url":"https://github.com/malept/thermite/issues/19","id":199359624,"number":19,"title":"Cargo and thermite treat dashes differently","user":{"login":"d-unseductable","id":6417870,"avatar_url":"https://avatars.githubusercontent.com/u/6417870?v=3","gravatar_id":"","url":"https://api.github.com/users/d-unseductable","html_url":"https://github.com/d-unseductable","followers_url":"https://api.github.com/users/d-unseductable/followers","following_url":"https://api.github.com/users/d-unseductable/following{/other_user}","gists_url":"https://api.github.com/users/d-unseductable/gists{/gist_id}","starred_url":"https://api.github.com/users/d-unseductable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d-unseductable/subscriptions","organizations_url":"https://api.github.com/users/d-unseductable/orgs","repos_url":"https://api.github.com/users/d-unseductable/repos","events_url":"https://api.github.com/users/d-unseductable/events{/privacy}","received_events_url":"https://api.github.com/users/d-unseductable/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-07T12:39:48Z","updated_at":"2017-01-07T12:39:48Z","closed_at":null,"body":"It looks like cargo by default replaces `-` with `_` in the name of the generated `dylib`, but thermite [uses](https://github.com/malept/thermite/blob/master/lib/thermite/config.rb#L107) plain `[package.name]`.\r\n\r\nEnvironment:\r\n\r\n - Ruby 2.4.0\r\n - Rake 12.0.0\r\n - Thermite 0.8.0 from git://github.com/malept/thermite.git (at master@63c8a57)\r\n - rustc 1.14.0 (e8a012324 2016-12-16)\r\n - cargo 0.15.0-nightly (298a012 2016-12-20)\r\n\r\nI created a [fork](https://github.com/d-unseductable/rusty_blank/tree/bug/dash_to_underscore) of the `rusty_blank` gem to reproduce the issue (`bug/dash_to_underscore` branch):\r\n\r\n 1. Change the `name` of the `[package]` in `Cargo.toml` from `rusty_blank` to `rusty-blank`.\r\n 2. Run `bundle exec rake thermite:build`\r\n\r\n    ```\r\n    checking for cargo... yes\r\n    /Users/dmitry/.cargo/bin/cargo build --release\r\n        Finished release [optimized] target(s) in 0.0 secs\r\n    rake aborted!\r\n    Errno::ENOENT: No such file or directory @ rb_sysopen - /Users/dmitry/gems/rusty_blank/target/release/librusty-blank.dylib\r\n    /Users/dmitry/.rbenv/versions/2.4.0/gemsets/rusty_blank/bundler/gems/thermite-63c8a5717858/lib/thermite/tasks.rb:122:in `block in define_build_task'\r\n    Tasks: TOP => thermite:build\r\n    (See full trace by running task with --trace)\r\n    ```"}}
{"actor":{"display_login":"d-unseductable"}}