Title: issues using `cargo vendor` · Issue #552 · feather-rs/feather · GitHub
Open Graph Title: issues using `cargo vendor` · Issue #552 · feather-rs/feather
X Title: issues using `cargo vendor` · Issue #552 · feather-rs/feather
Description: Description Projects depending on feather can not vendor their dependencies using cargo vendor Reproduction Steps git clone https://cyberchaos.dev/yuka/rnat cd rnat mkdir .cargo cargo vendor > .cargo/config.toml cargo build --all-feature...
Open Graph Description: Description Projects depending on feather can not vendor their dependencies using cargo vendor Reproduction Steps git clone https://cyberchaos.dev/yuka/rnat cd rnat mkdir .cargo cargo vendor > .car...
X Description: Description Projects depending on feather can not vendor their dependencies using cargo vendor Reproduction Steps git clone https://cyberchaos.dev/yuka/rnat cd rnat mkdir .cargo cargo vendor > ....
Opengraph URL: https://github.com/feather-rs/feather/issues/552
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"issues using `cargo vendor`","articleBody":"## Description\r\n\u003c!-- A clear and concise description of what the bug is. --\u003e\r\n\r\nProjects depending on feather can not vendor their dependencies using `cargo vendor`\r\n\r\n## Reproduction Steps\r\n\r\n1. `git clone https://cyberchaos.dev/yuka/rnat`\r\n2. `cd rnat`\r\n3. `mkdir .cargo`\r\n4. `cargo vendor \u003e .cargo/config.toml`\r\n5. `cargo build --all-features`\r\n\r\n## What You Expected to Happen\r\nThe vendored versions of the feather crates should work standalone\r\n\r\n## What Actually Happened\r\nlibcraft-blocks-... attempts to load assets from outside its crate root, and fails to build\r\n\r\n## Screenshots and Logs\r\n```\r\nerror: couldn't read /home/yuka/rnat/vendor/libcraft-blocks/src/../../assets/raw_block_states.bc.gz: No such file or directory (os error 2)\r\n --\u003e /home/yuka/rnat/vendor/libcraft-blocks/src/registry.rs:216:36\r\n |\r\n216 | static STATE_DATA: \u0026[u8] = include_bytes!(\"../../assets/raw_block_states.bc.gz\");\r\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n |\r\n = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)\r\n\r\nerror: couldn't read /home/yuka/rnat/vendor/libcraft-blocks/src/../../assets/raw_block_properties.bc.gz: No such file or directory (os error 2)\r\n --\u003e /home/yuka/rnat/vendor/libcraft-blocks/src/registry.rs:222:39\r\n |\r\n222 | static PROPERTY_DATA: \u0026[u8] = include_bytes!(\"../../assets/raw_block_properties.bc.gz\");\r\n | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n |\r\n = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)\r\n\r\nerror: could not compile `libcraft-blocks` due to 2 previous errors\r\n\r\n```\r\n\r\n## Your Environment\r\n\r\n- Operating System: Linux\r\n- Operating System Version: ...\r\n- **Feather** Version: a86d61db13f905418b3b6aeb59d5175a69b4a785\r\n\r\n\r\n## Additional Context\r\n\u003c!-- Add any other context about the problem here. --\u003e\r\n\r\nIt is a known bug in cargo that workspace git dependencies have issues with vendoring:\r\n\r\nhttps://github.com/rust-lang/cargo/issues/8885\r\nhttps://github.com/rust-lang/cargo/issues/11192\r\n","author":{"url":"https://github.com/yu-re-ka","@type":"Person","name":"yu-re-ka"},"datePublished":"2023-01-18T10:44:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/552/feather/issues/552"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:85e7c584-306a-622f-f863-ca2e76fb9c46 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8578:66B2:69114F:86B214:69905C92 |
| html-safe-nonce | 9bcf6c10c0a7be6b06e9a9facb6050f8eb6571d0a30ba8f174884de0ceabdaf9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTc4OjY2QjI6NjkxMTRGOjg2QjIxNDo2OTkwNUM5MiIsInZpc2l0b3JfaWQiOiIxNDU3MDc0NjczNjc1Mzc4MTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e88a5afb9804af4a5945cde0f28fc0923ec138cbfdc4a426089a443be24a77ad |
| hovercard-subject-tag | issue:1537777936 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/feather-rs/feather/552/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d1743b1350fa865e2744f7f0ee2401c212c49a89b1d1983d9ca1f4da72b1daf1/feather-rs/feather/issues/552 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d1743b1350fa865e2744f7f0ee2401c212c49a89b1d1983d9ca1f4da72b1daf1/feather-rs/feather/issues/552 |
| og:image:alt | Description Projects depending on feather can not vendor their dependencies using cargo vendor Reproduction Steps git clone https://cyberchaos.dev/yuka/rnat cd rnat mkdir .cargo cargo vendor > .car... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yu-re-ka |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/feather-rs/feather git https://github.com/feather-rs/feather.git |
| octolytics-dimension-user_id | 54925191 |
| octolytics-dimension-user_login | feather-rs |
| octolytics-dimension-repository_id | 191701609 |
| octolytics-dimension-repository_nwo | feather-rs/feather |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 191701609 |
| octolytics-dimension-repository_network_root_nwo | feather-rs/feather |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width