Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo-contract error[E0432]: unresolved import `contract_build::metadata::METADATA_FILE #56

Open
ltfschoen opened this issue Feb 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@ltfschoen
Copy link
Owner

When I ran cargo install cargo-contract --version 2.0.0-rc.1 on macOS it gave the following error:

    Compiling wasm-opt v0.111.0
    error[E0432]: unresolved import `contract_build::metadata::METADATA_FILE`
      --> /Users/luke/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-contract-2.0.0-rc.1/src/cmd/extrinsics/mod.rs:85:5
      |
    85 | use contract_build::metadata::METADATA_FILE;
      |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `METADATA_FILE` in `metadata`

    For more information about this error, try `rustc --explain E0432`.
    The following warnings were emitted during compilation:

    warning: Git command failed with status: exit status: 128
    warning: Could not find `.git/HEAD` searching from `/Users/luke/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-contract-2.0.0-rc.1` upwards!

    error: could not compile `cargo-contract` due to previous error
    error: failed to compile `cargo-contract v2.0.0-rc.1`, intermediate artifacts can be found at `/var/folders/69/n6p09m3d6t5d7tw5kn9f3kkm0000gq/T/cargo-installytfbPN`
@ltfschoen ltfschoen added the bug Something isn't working label Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant