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

Fail to build contract with workspace dependencies #1172

Open
pgherveou opened this issue Jun 22, 2023 · 0 comments
Open

Fail to build contract with workspace dependencies #1172

pgherveou opened this issue Jun 22, 2023 · 0 comments

Comments

@pgherveou
Copy link
Contributor

Building with cargo contract build will fail with the following output if the Cargo project references workspace dependencies

[dependencies]
ink = { workspace = true }
❯ cargo contract build
 [1/*] Building cargo project
error: failed to parse manifest at `/private/var/folders/3h/l7gx59zd5tnb75rgjvc8rbq00000gn/T/cargo-contract_gYdhDA/demo_xcm_contract/Cargo.toml`

Caused by:
  error inheriting `ink` from workspace root manifest's `workspace.dependencies.ink`

Caused by:
  `workspace.dependencies` was not defined
ERROR: `cd "/var/folders/3h/l7gx59zd5tnb75rgjvc8rbq00000gn/T/cargo-contract_gYdhDA/demo_xcm_contract" && RUSTC_BOOTSTRAP="1" RUSTFLAGS="-C link-arg=-zstack-size=65536 -C link-arg=--import-memory -Clinker-plugin-lto -C target-cpu=mvp" "/Users/pg/.rustup/toolchains/1.69-aarch64-apple-darwin/bin/cargo" "build" "--target=wasm32-unknown-unknown" "-Zbuild-std" "--no-default-features" "--release" "--target-dir=/Users/pg/github/pallet-contracts-xcm/target/ink/xcm_contract" "--features" "ink/ink-debug"` failed with exit code: Some(101)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant