software-mansion / scarb

The Cairo package manager
http://docs.swmansion.com/scarb/
MIT License
192 stars 71 forks source link

Remove 'plugin not found' warning when inheriting workspace dependencies #1603

Open julio4 opened 2 months ago

julio4 commented 2 months ago

Problem

Main scarb.toml:

[workspace.dependencies]
cairo_test = "2.8.2"

Workspace's member scarb.toml:

[dev-dependencies]
cairo_test.workspace = true

Result in:

warn: `cairo_test` plugin not found
please add the following snippet to your Scarb.toml manifest:
\```
[dev-dependencies]
cairo_test = "2.8.2"
\```

Steps

No response

Possible Solution(s)

No response

Notes

No response

Version

scarb 2.8.2 (a37b4cbfc 2024-09-09)
cairo: 2.8.2 (https://crates.io/crates/cairo-lang-compiler/2.8.2)
sierra: 1.6.0
maciektr commented 2 months ago

Hi @julio4 !

Can you provide a reproduction for this?

I failed to reproduce in https://github.com/software-mansion/scarb/tree/main/examples/workspaces for 2.8.2

julio4 commented 2 months ago

You can reproduce with: checkout https://github.com/NethermindEth/StarknetByExample/pull/246 cd listings/getting-started/storage scarb cairo-test