Open beeb opened 3 weeks ago
maybe a better idea is to have an arg? I'm not sure if traversing upwards is the right approach.
It's not a great UX if a user has to pass an additional arg if they want to run soldeer install package~version
from the src
or test
directory (that's an example).
Besides, this is how foundry does it
Hmm, ok, then we should do it this way then.
Currently, soldeer assumes that the dependencies dir, the lock file, the foundry config file, the soldeer config file and the remappings file are localed in the current working directory. We could allow for more flexibility (running soldeer commands from a sub-directory) by traversing the file tree upwards until we find a foundry project root (a folder that contains a
foundry.toml
orsoldeer.toml
file), instead of usingenv::current_dir()
.