With #8668 we now resolve the Graph when creating project as we need data about all sources for restrictions. This caused forge test to fail in CI if there are any missing dependencies which were being installed only after call to config.project()
This PR changes order of operations so that we always install dependencies first. Also I've added an optimization to skip graph resolution if user did not specify any restrictions
Motivation
Closes https://github.com/foundry-rs/foundry/issues/9375
With #8668 we now resolve the
Graph
when creating project as we need data about all sources for restrictions. This causedforge test
to fail in CI if there are any missing dependencies which were being installed only after call toconfig.project()
This PR changes order of operations so that we always install dependencies first. Also I've added an optimization to skip graph resolution if user did not specify any restrictions