coral-xyz / anchor

⚓ Solana Sealevel Framework
https://anchor-lang.com
Apache License 2.0
3.36k stars 1.25k forks source link

`anchor init` should consider already existing workspace #2940

Open ranile opened 2 months ago

ranile commented 2 months ago

Cargo doesn't support nested workspaces. When anchor init is run, it unconditionally creates a new workspace and members of that workspace.

It should try to find an existing workspace. If one exists, that workspace should be used. Otherwise a new workspace should be created

murluki commented 2 months ago

could you please assign that to me, please?