Help Needed: Sui Move Build Failing - Failed to Resolve Dependencies (os error 2)

Title: Help Needed: Sui Move Build Failing - Failed to Resolve Dependencies (os error 2)

Body:

Hello everyone,

I’m facing an issue while trying to build my Move package for Sui. The build consistently fails with the following error:

lqx@DESKTOP-D6DNN8E:~/lqx_token$ sui move build
Failed to build Move modules: Failed to resolve dependencies for package 'lqx_token'

Caused by:
    0: Parsing manifest for 'Sui'
    1: No such file or directory (os error 2).

What I’ve Tried So Far:

  1. Checked Move.toml dependencies:

    • Initially, I was using a local dependency for Sui:
      [dependencies]
      Sui = { local = "../sui/crates/sui-framework" }
      
    • Then, I updated it to fetch from Git:
      [dependencies]
      Sui = { git = "https://github.com/MystenLabs/sui.git", rev = "mainnet", subdir = "crates/sui-framework" }
      
  2. Checked if the Sui framework exists:

    ls -l ~/sui/crates/sui-framework
    

    The directory exists and contains Cargo.toml, src/, etc.

  3. Deleted all cached dependencies and old files:

    rm -rf ~/.move
    rm -rf ~/sui
    rm -f Move.lock
    

    Then, I reinstalled Sui via Cargo:

    cargo install --git https://github.com/MystenLabs/sui.git --branch mainnet sui
    
  4. Tried manually cloning Sui and updating Move.toml to use a local path:

    git clone --branch mainnet https://github.com/MystenLabs/sui.git ~/sui
    

    Updated Move.toml:

    [dependencies]
    Sui = { local = "/home/lqx/sui/crates/sui-framework" }
    
  5. Verified my Sui environment:

    sui client active-env
    

    Initially, it returned an error saying no environment was found for Mainnet. I added it:

    sui client new-env --alias mainnet --rpc https://fullnode.mainnet.sui.io:443
    sui client switch --env mainnet
    
  6. Tried rebuilding the Move package:

    sui move build
    

    Still getting the same os error 2.

Additional Information:

  • OS: Ubuntu running on WSL2
  • Sui Version: 1.42.3 (client) / 1.42.2 (server)
  • Network: Trying to deploy on Mainnet

Does anyone have any suggestions on what else I can try? I feel like I’ve exhausted all possible fixes, but I’m still stuck on the dependency resolution issue.

Any help would be greatly appreciated!