Skip to content

deps

move dependencies management

deepmove will read [dependencies-remote] fields from Move.toml and pull move deps from remote repos into local deps directorys, so when you run move build command, it will not try to run git pull from remote repos everytime

usage:

deps

example

in Move.toml, you have the following Sui framework as dependencies

[dependencies-remote]
Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/mainnet" }

then, you can run deps command

shell
sui@deepmove>deps
Initialized empty Git repository in E:/projects/wasm_test/deps/sui/.git/
From https://github.com/MystenLabs/sui
 * branch            framework/mainnet -> FETCH_HEAD
 * [new branch]      framework/mainnet -> origin/framework/mainnet
Switched to a new branch 'framework/mainnet'

it will clone from remote repos, and store the results into local deps

deps2.png

then in your Move.toml, in dependencies field, you will have the local depenencies of sui framework

[dependencies]
Sui = { local = "./deps/sui/crates/sui-framework/packages/sui-framework" }

tech note

deepmove use git sparsecheckout, so it will only checkout the sui-framework directory instead of the whole sui repos

Released under the MIT License.