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

Non-contract build error #108

Closed
kroist opened this issue Feb 26, 2024 · 0 comments
Closed

Non-contract build error #108

kroist opened this issue Feb 26, 2024 · 0 comments

Comments

@kroist
Copy link
Collaborator

kroist commented Feb 26, 2024

As stated here,

let metadata = MetadataCommand::new()

drink tries to build crate's contract, when the crate has ink-as-dependency feature.

The problem occurs, when the:

  • Drink test crate is in the workspace
  • Drink test crate does not have a contract inside
  • Some other member of workspace has a contract (has ink-as-dependency feature)

cargo metadata returns the metadata for the workspace, not for the current crate.

Actually, it seems that the only workaround would be do exclude the drink test package from the workspace.

rust-lang/cargo#7754

@kroist kroist closed this as not planned Won't fix, can't repro, duplicate, stale Feb 26, 2024
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