Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[cli] improve git output (MystenLabs#18636)
## Description Check if git is installed. Ouput the git clone or git fetch message ## Test plan 1. git is not installed ``` sui move build Git is not installed or not in the PATH. Failed to build Move modules: Failed to resolve dependencies for package 'gitt' Caused by: 0: Fetching 'Sui' 1: Git is not installed or not in the PATH.. ``` 2.network error ``` sui move build FETCHING GIT DEPENDENCY https://github.com/MystenLabs/sui.git Cloning into '/home/sun/.move/https___github_com_MystenLabs_sui_git_framework__testnet'... fatal: unable to access 'https://github.com/MystenLabs/sui.git/': Could not resolve host: github.com Failed to build Move modules: Failed to resolve dependencies for package 'up' Caused by: 0: Parsing manifest for 'Sui' 1: No such file or directory (os error 2). ``` 3.Show the progress of git ``` sui move build FETCHING GIT DEPENDENCY https://github.com/MystenLabs/sui.git Cloning into '/home/sun/.move/https___github_com_MystenLabs_sui_git_framework__testnet'... remote: Enumerating objects: 345462, done. remote: Counting objects: 100% (5589/5589), done. remote: Compressing objects: 100% (2204/2204), done. Receiving objects: 9% (33800/345462), 35.71 MiB | 4.38 MiB/s ``` --- ## Release notes Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required. For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates. - [ ] Protocol: - [ ] Nodes (Validators and Full nodes): - [ ] Indexer: - [ ] JSON-RPC: - [ ] GraphQL: - [x] CLI: Improve error and status messages for `sui move build`. - [ ] Rust SDK:
- Loading branch information