-
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
Failed to build Move modules: Failed to resolve dependencies for package <PACKAGE> #20514
Comments
Hey @jonahsimon13! Would you be comfortable providing more details about what's going on? Perhaps, sharing a repro / package you're trying to build, and the steps taken? |
The repo I'm working in has about 25 project folders, and I was able to build everything a week or two ago. Now, some of the packages build and others give the deserialization error. I think the only thing that changed prior to the issue arising was I reinstalled sui by building from source where previously I had used cargo install. This also put me on version 1.36.2. |
Can you try using the most recent 1.38 and tell me if it works? Also, which branch did you build it from? |
This is on the mainnet branch, I updated sui to 1.39.0 and the issue persisted. My colleague was able to reproduce it and solved it by manually changing the move.lock files in the package I was trying to build, and another package that it depended on that also threw the same error. Making the same changes worked for me as well. For reference, in the lockfiles wherever a dependency was listed, it needed to be changed from this format: dependencies = [ to this format: dependencies = [ and wherever a package was listed, it needed to be changed from this format: [[move.package]] to this format: [[move.package]] |
@jonahsimon13 Is there a |
Yes it has version = 3 |
Do you happen to remember what tool produced that lockfile (e.g. was it output by |
It was output by 'sui move build'. I think what happened was multiple people working in the same repo on different versions of sui led to incompatible lock files (or the same lock file with incompatible fields) getting pushed up/pulled down. |
Steps to Reproduce Issue
Trying to build a Move package and I get the following error:
Failed to build Move modules: Failed to resolve dependencies for package 'lottery'
Caused by:
0: Deserializing packages
1: missing field
id
for keymove.dependencies
at line 8 column 3.System Information
This has happened since using Sui 1.36.2. Other packages build fine, but this one and a couple others are throwing this error and there are no obvious differences in the .toml files. I tried deleting Move.lock, /build, and ~/.move and it did not resolve the issue.
The text was updated successfully, but these errors were encountered: