mario-eth / soldeer

Solidity Package Manager written in rust
MIT License
143 stars 13 forks source link

Install dependencies of an external soldeer project #50

Open Solthodox opened 1 month ago

Solthodox commented 1 month ago

I noticed Soldeer has a soldeer install <dependency> command but doesn't have a soldeer install one(similar to npm install)to install the dependencies of a already existing project that already has the Soldeer dependencies in foundry.toml and a soldeer.lock file. It would be nice having such option since forge build won't work in this case.

mario-eth commented 1 month ago

you can use soldeer update, this looks in the foundry.toml and installs all the dependencies. e.g. You git clone your project that has a foundry.toml(or soldeer.toml) with dependencies You run soldeer update you can run forge build

Solthodox commented 1 month ago

Oh nice, still, it's not very intuitive doing it like that, in my brain as a user first thing I try to do when installing the dependencies is run soldeer install.

mario-eth commented 1 month ago

then maybe a solution is in case there is nothing specified, just run soldeer update.

anthonyra commented 4 weeks ago

Coming from other javascript package managers I believe soldeer install is the "normal" approach. When updating a dependency it's less likely for you to update the .toml and more likely to do an atomic soldeer install <dependency>