-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[cli] improve git output #18636
[cli] improve git output #18636
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
3 Skipped Deployments
|
@vegetabledogdog is attempting to deploy a commit to the Mysten Labs Team on Vercel. A member of the Team first needs to authorize it. |
Thanks @vegetabledogdog! I think this is reasonable. |
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
@tzakian what do you think? |
e8886ee
to
2f796c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## 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:
Description
Check if git is installed.
Ouput the git clone or git fetch message
Test plan
2.network error
3.Show the progress of git
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.
sui move build
.