Skip to content
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

[packages] Make manifest and dependency digests mandatory in lock files #13487

Merged
merged 4 commits into from
Sep 18, 2023

Conversation

awelc
Copy link
Contributor

@awelc awelc commented Aug 22, 2023

Description

This is a follow-up to #12575 where making manifest and dependency digests mandatory was left for future work (#12575 (comment))

One issue here is that now external resolvers must also output content for both of these fields (though digests can actually be empty).

Test Plan

All existing tests must pass after the mandatory field adjustment.


If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process.

Type of Change (Check all that apply)

  • protocol change
  • user-visible impact
  • breaking change for a client SDKs
  • breaking change for FNs (FN binary must upgrade)
  • breaking change for validators or node operators (must upgrade binaries)
  • breaking change for on-chain data layout
  • necessitate either a data wipe or data migration

Release notes

Manifest file digest and dependency digest fields in Move.lock files are are now mandatory.

@awelc awelc self-assigned this Aug 22, 2023
@vercel
Copy link

vercel bot commented Aug 22, 2023

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

Name Status Preview Comments Updated (UTC)
sui-typescript-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 18, 2023 2:01pm
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
explorer ⬜️ Ignored (Inspect) Visit Preview Sep 18, 2023 2:01pm
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Sep 18, 2023 2:01pm
mysten-ui ⬜️ Ignored (Inspect) Visit Preview Sep 18, 2023 2:01pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Sep 18, 2023 2:01pm

Copy link
Contributor

@amnn amnn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nits, but this looks good to go! Thanks @awelc :D I'm pleased with how neatly this slotted in.

I also remember that there was an explicit opt-out for caching where external resolvers were involved -- is that still the case, and if so, does that need to be removed (in a future PR) or is that now defunct and/or gone?

),
deps_digest: None,
manifest_digest: "40ECD99EA24DDE388D25DBAB6EFAAF04543D55F0AD108BA6F489B0C71BB618AB",
deps_digest: "",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing we get an empty string here because there are no deps -- thoughts on making this the digest of the empty list instead? I'm not wedded to it, but I'm trying to anticipate difficulties in interpreting this as a digest elsewhere (in other tools) if it could also be an empty string.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed! And I don't have a strong opinion here so made it a digest of an empty list

@awelc
Copy link
Contributor Author

awelc commented Sep 18, 2023

I also remember that there was an explicit opt-out for caching where external resolvers were involved -- is that still the case, and if so, does that need to be removed (in a future PR) or is that now defunct and/or gone?

I have to say I don't remember this... The only type of hashing I remember was dependency hashing. Do you recall other details on this? Also, I am sorry for letting it hang for so long, but I missed the feedback notifications somehow...

@awelc awelc merged commit 7952384 into main Sep 18, 2023
36 checks passed
@awelc awelc deleted the aw/dep-graph-mandatory-digests branch September 18, 2023 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants