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

E2E tests fail to build contracts when using workspace dependencies #1919

Open
aon opened this issue Sep 21, 2023 · 0 comments
Open

E2E tests fail to build contracts when using workspace dependencies #1919

aon opened this issue Sep 21, 2023 · 0 comments

Comments

@aon
Copy link

aon commented Sep 21, 2023

Contract build stage fails when running e2e tests inside a cargo workspace and ink dependencies are inherited from the workspace Cargo.toml. It does work when the dependency is defined for each package member.

Error shown below:

 [1/*] Building cargo project
error: failed to parse manifest at `/private/var/folders/jt/0h_3b_vn7mjc0qdk1kb0pyg40000gn/T/cargo-contract_Z49ETn/ecdsa-recover/Cargo.toml`

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

Caused by:
  `workspace.dependencies` was {"message":"custom attribute panicked","code":null,"level":"error","spans":[{"file_name":"ecdsa-recover/lib.rs","byte_start":2100,"byte_end":2116,"line_start":72,"line_end":72,"column_start":9,"column_end":25,"is_primary":true,"text":[{"text":"        #[ink_e2e::test]","highlight_start":9,"highlight_end":25}],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"message: contract build for /Users/agustin/work/coinfabrik/on-ink-integration-tests/test-cases/ecdsa-recover/Cargo.toml failed: command [\"/Users/agustin/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo\", \"build\", \"--color=always\", \"--target=wasm32-unknown-unknown\", \"-Zbuild-std=core,alloc\", \"--no-default-features\", \"--release\", \"--target-dir=/Users/agustin/work/coinfabrik/on-ink-integration-tests/test-cases/target/ink/ecdsa_recover\", \"--features\", \"ink/ink-debug\"] exited with code 101","code":null,"level":"help","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[0m\u001b[1m\u001b[38;5;9merror\u001b[0m\u001b[0m\u001b[1m: custom attribute panicked\u001b[0m\n\u001b[0m  \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m--> \u001b[0m\u001b[0mecdsa-recover/lib.rs:72:9\u001b[0m\n\u001b[0m   \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m\u001b[1m\u001b[38;5;12m72\u001b[0m\u001b[0m \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\u001b[0m \u001b[0m\u001b[0m        #[ink_e2e::test]\u001b[0m\n\u001b[0m   \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m| \u001b[0m\u001b[0m        \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;9m^^^^^^^^^^^^^^^^\u001b[0m\n\u001b[0m   \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m|\u001b[0m\n\u001b[0m   \u001b[0m\u001b[0m\u001b[1m\u001b[38;5;12m= \u001b[0m\u001b[0m\u001b[1mhelp\u001b[0m\u001b[0m: message: contract build for /Users/agustin/work/coinfabrik/on-ink-integration-tests/test-cases/ecdsa-recover/Cargo.toml failed: command [\"/Users/agustin/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo\", \"build\", \"--color=always\", \"--target=wasm32-unknown-unknown\", \"-Zbuild-std=core,alloc\", \"--no-default-features\", \"--release\", \"--target-dir=/Users/agustin/work/coinfabrik/on-ink-integration-tests/test-cases/target/ink/ecdsa_recover\", \"--features\", \"ink/ink-debug\"] exited with code 101\u001b[0m\n\n"}
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