Skip to content
This repository has been archived by the owner on Feb 11, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant