GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — issues using `cargo vendor` · Issue #552 · feather-rs/feather

issues using cargo vendor #552

New issue
Copy link
New issue
Copy link
Open
Open
issues using cargo vendor#552
Copy link

Description

@yu-re-ka
yu-re-ka
opened on Jan 18, 2023
Issue body actions

Description

Projects depending on feather can not vendor their dependencies using cargo vendor

Reproduction Steps

  1. git clone https://cyberchaos.dev/yuka/rnat
  2. cd rnat
  3. mkdir .cargo
  4. cargo vendor > .cargo/config.toml
  5. cargo build --all-features

What You Expected to Happen

The vendored versions of the feather crates should work standalone

What Actually Happened

libcraft-blocks-... attempts to load assets from outside its crate root, and fails to build

Screenshots and Logs

error: couldn't read /home/yuka/rnat/vendor/libcraft-blocks/src/../../assets/raw_block_states.bc.gz: No such file or directory (os error 2)
   --> /home/yuka/rnat/vendor/libcraft-blocks/src/registry.rs:216:36
    |
216 |         static STATE_DATA: &[u8] = include_bytes!("../../assets/raw_block_states.bc.gz");
    |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)

error: couldn't read /home/yuka/rnat/vendor/libcraft-blocks/src/../../assets/raw_block_properties.bc.gz: No such file or directory (os error 2)
   --> /home/yuka/rnat/vendor/libcraft-blocks/src/registry.rs:222:39
    |
222 |         static PROPERTY_DATA: &[u8] = include_bytes!("../../assets/raw_block_properties.bc.gz");
    |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `libcraft-blocks` due to 2 previous errors

Your Environment

  • Operating System: Linux
  • Operating System Version: ...
  • Feather Version: a86d61d

Additional Context

It is a known bug in cargo that workspace git dependencies have issues with vendoring:

rust-lang/cargo#8885
rust-lang/cargo#11192

Activity

  1. Bloeckchengrafik commented on Jan 19, 2023

    @Bloeckchengrafik
    Bloeckchengrafik
    on Jan 19, 2023
    More actions

    Like abzh423 said in #550

    It's dead I would say. No documentation, no clear structure. Start something on your own, would be much better, but this time make some nice ass documentation along the way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.