Combine flow deps add
& flow deps install
commands
#1755
Labels
Feature
A new user feature or a new package API
flow deps add
& flow deps install
commands
#1755
Problem
Currently,
flow deps add
andflow deps install
are seperate commands. There is really no reason to separate these commands and it is advantageous to lean into theflow deps install
functionality when adding dependencies to keep them up to date & reduce confusion.Proposed solution
I propose that we combine these two commands into
flow deps install
, where the following behaviour applies (similar to the NPM model):flow deps add
, but will also perform theflow deps install
actionDependencies
I have a feeling that this may introduce overhead for adding dependencies. If this is significant, we must consider more efficient dependency fetching mechanisms (i.e. batch retrieval of on-chain hashes or deployment block heights if possible) and only fetch full contract code for dependencies which have been updated.
The text was updated successfully, but these errors were encountered: