sui icon indicating copy to clipboard operation
sui copied to clipboard

[cli] improve git output

Open vegetabledogdog opened this issue 1 year ago • 3 comments

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: 345126, done.
remote: Counting objects: 100% (4331/4331), done.
remote: Compressing objects: 100% (1264/1264), done.
remote: Total 345126 (delta 3599), reused 3690 (delta 3026), pack-reused 340795
Receiving objects: 100% (345126/345126), 310.40 MiB | 1.35 MiB/s, done.
Resolving deltas: 100% (233825/233825), done.
INCLUDING DEPENDENCY Sui
INCLUDING DEPENDENCY MoveStdlib
BUILDING gitt

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:
  • [ ] Rust SDK:

vegetabledogdog avatar Jul 12 '24 15:07 vegetabledogdog

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 14, 2024 5:36am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Sep 14, 2024 5:36am
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Sep 14, 2024 5:36am
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Sep 14, 2024 5:36am

vercel[bot] avatar Jul 12 '24 15:07 vercel[bot]

@vegetabledogdog is attempting to deploy a commit to the Mysten Labs Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Jul 12 '24 15:07 vercel[bot]

Thanks @vegetabledogdog! I think this is reasonable.

stefan-mysten avatar Jul 12 '24 15:07 stefan-mysten

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.

github-actions[bot] avatar Sep 13 '24 01:09 github-actions[bot]

@tzakian what do you think?

stefan-mysten avatar Sep 13 '24 02:09 stefan-mysten