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

[move-2024] Change default TOML to be 2024 beta #16697

Merged
merged 2 commits into from
Mar 20, 2024

Conversation

cgswords
Copy link
Contributor

@cgswords cgswords commented Mar 16, 2024

Description

Change default TOML to be 2024 beta

Test Plan

Local testing, plus other tests still work.


If your changes are not user-facing and do not break anything, you can skip the following section. Otherwise, please briefly describe what has changed under the Release Notes section.

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

When using the sui move new or move new commands, the default Move.toml file created is formatted to work with Move 2024 beta release. Move 2024 beta release adds some functionality to the core Move language but is opt-in, so legacy code will continue to run as expected.

Copy link

vercel bot commented Mar 16, 2024

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

Name Status Preview Comments Updated (UTC)
explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2024 10:56pm
multisig-toolkit ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2024 10:56pm
mysten-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2024 10:56pm
sui-core ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2024 10:56pm
sui-kiosk ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2024 10:56pm
sui-typescript-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2024 10:56pm

Copy link
Contributor

@rvantonder rvantonder left a comment

Choose a reason for hiding this comment

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

@cgswords can you hold off on merging this? I think if today someone started using this, and tries to publish a 2024.beta edition it is going to fail dependency verification on sui framework packages (because it is going to compile the current sui framework with 2024.beta, which I think mismatches the current on-chain bytecode).

I need to double check things here and come up with a way to resolve if it's the case. As mentioned in our talk, we don't currently version compilation of sui framework packages, and always choose the current compiler. I may need to revisit how that works if we are enabling 2024.beta but don't yet publish sui framework packages to chain with 2024.beta.

@rvantonder
Copy link
Contributor

In fact this change should probably come with an integration test that does something like

sui move build
sui move publish . --gas-budget 10000000   

I will help with that--I have a hunch I will need to make a change to toolchain versioning code before that "just works".

@rvantonder
Copy link
Contributor

which I think mismatches the current on-chain bytecode

Okay there's no mismatch, I was checking different changes locally (localnet vs testnet).

Still, think it's worthwhile to have a test here, will see if I can tack on a commit to this PR!

@rvantonder
Copy link
Contributor

On second thought--clarified with @cgswords I missed that edition is per package, so this won't affect framework compilation. I had thought specifying the edition in Move.toml is like specifying --default-move-edition but that's not the case.

@cgswords cgswords merged commit 0fe8af0 into main Mar 20, 2024
41 checks passed
@cgswords cgswords deleted the cgswords/change_move_new_default_to_2024 branch March 20, 2024 00:51
fariedt added a commit to PravicaInc/S3.MONEY that referenced this pull request Apr 3, 2024
The change in MystenLabs/sui#16697
released on April 2 defaults to a newer version of Move that
does not compile the token contract created by the backend.
fariedt added a commit to PravicaInc/S3.MONEY that referenced this pull request May 6, 2024
The change in MystenLabs/sui#16697
released on April 2 defaults to a newer version of Move that
does not compile the token contract created by the backend.
tx-tomcat pushed a commit to tx-tomcat/sui-network that referenced this pull request May 30, 2024
## Description 

Change  default TOML to be 2024 beta

## Test Plan 

Local testing, plus other tests still work.

---
If your changes are not user-facing and do not break anything, you can
skip the following section. Otherwise, please briefly describe what has
changed under the Release Notes section.

### Type of Change (Check all that apply)

- [ ] protocol change
- [x] 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

Changes the default `Move.toml` for `sui move new` and `move new` to use
the Move 2024 beta release.
noumanahmads pushed a commit to PravicaInc/S3.MONEY that referenced this pull request Jul 8, 2024
The change in MystenLabs/sui#16697
released on April 2 defaults to a newer version of Move that
does not compile the token contract created by the backend.
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.

3 participants