sui: Failed to build Move modules

Steps to Reproduce Issue

I had some errors when trying to build the project: Failed to build Move modules: Failed to resolve dependencies for package ‘test’

e.g.

  1. choco install sui
  2. sui move new test
  3. cd test && sui move build

Expected Result

Successful

Actual Result

UPDATING GIT DEPENDENCY https://github.com/MystenLabs/sui.git
Failed to build Move modules: Failed to resolve dependencies for package 'test'

Caused by:
    0: Fetching 'Sui'
    1: Failed to reset to latest Git state 'framework/testnet' for package 'Sui', to skip set --skip-fetch-latest-git-deps | Exit status: exit code: 128.

System Information

  • OS: Windows 11
  • Compiler: sui 1.21.1-5f2bfb1-dirty
  • sui client active-env: testnet
  • rustup -V: rustup 1.27.0 (bbb9276d2 2024-03-08)
  • git -v: git version 2.41.0.windows.3

About this issue

  • Original URL
  • State: open
  • Created 3 months ago
  • Comments: 30 (15 by maintainers)

Commits related to this issue

Most upvoted comments

We’re working on improving Windows support, so please keep filing issues to help us identify unknown issues.

We think we have fixed it for windows with cmd.exe. Sorry about the issue! The fix should be out in 1.23

@datznt
v1.19.1 is ok. but v1.20.1 and v1.21.1 is not work… >-<

Steps to Reproduce Issue

I had some errors when trying to build the project: Failed to build Move modules: Failed to resolve dependencies for package ‘test’

e.g.

  1. choco install sui
  2. sui move new test
  3. cd test && sui move build

Expected Result

Successful

Actual Result

UPDATING GIT DEPENDENCY https://github.com/MystenLabs/sui.git
Failed to build Move modules: Failed to resolve dependencies for package 'test'

Caused by:
    0: Fetching 'Sui'
    1: Failed to reset to latest Git state 'framework/testnet' for package 'Sui', to skip set --skip-fetch-latest-git-deps | Exit status: exit code: 128.

System Information

  • OS: Windows 11
  • Compiler: sui 1.21.1-5f2bfb1-dirty
  • sui client active-env: testnet
  • rustup -V: rustup 1.27.0 (bbb9276d2 2024-03-08)
  • git -v: git version 2.41.0.windows.3

check your Move.tml and edit the [dependencies]

Sui = { git = “https://github.com/MystenLabs/sui.git”, subdir = “crates/sui-framework/packages/sui-framework”, rev = “testnet” }

@datznt thanks for the detailed info. That does not sound good. I’ll look into it asap.

Thanks for your patience. I relayed internally that something is wrong. In the meantime, if you can, I’d recommend to use an older version. I tested the v1.20.0 on my Win10 machine and it compiled successfully. You can either install it via choco

choco uninstall sui
choco install sui --version=1.20.0

or you can download the release binary https://github.com/MystenLabs/sui/releases

Love it, hope Sui will be better

Thanks for your patience. I relayed internally that something is wrong. In the meantime, if you can, I’d recommend to use an older version. I tested the v1.20.0 on my Win10 machine and it compiled successfully. You can either install it via choco

choco uninstall sui
choco install sui --version=1.20.0

or you can download the release binary https://github.com/MystenLabs/sui/releases