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-ide] Move analyzer versioning #17929

Merged
merged 3 commits into from
May 28, 2024
Merged

[move-ide] Move analyzer versioning #17929

merged 3 commits into from
May 28, 2024

Conversation

awelc
Copy link
Contributor

@awelc awelc commented May 24, 2024

Description

We would like to use the same versioning scheme we use for Sui binaries (particularly for sui binary) for the move-analyzer as well.

Both sui and move-analyzer binaries "bundle" the move compiler and being able to tell which version you are using is very useful (and really necessary to avoid discrepancies in the compilation process between the IDE and CLI).

It's apparently not possible to have to move-analyzer binaries in the repo (one in crates and one in external-crates) so I renamed the one in external-crates as it's the one in crates that is intended to be externally used from now on.

Test plan

All existing tests must pass

@awelc awelc requested review from amnn, tnowacki, bmwill and ebmifa May 24, 2024 22:27
@awelc awelc self-assigned this May 24, 2024
Copy link

vercel bot commented May 24, 2024

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

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 25, 2024 11:07pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview May 25, 2024 11:07pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview May 25, 2024 11:07pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview May 25, 2024 11:07pm

Copy link
Contributor

@bmwill bmwill left a comment

Choose a reason for hiding this comment

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

Package and binary names/locations lgtm.

@@ -141,7 +141,7 @@ jobs:
shell: bash
run: |
[ -f ~/.cargo/env ] && source ~/.cargo/env ; cargo build --release && cargo build --profile=dev --bin sui
cd external-crates/move && cargo build -p move-analyzer --release
cargo build -p sui-move-lsp --release
Copy link
Contributor

Choose a reason for hiding this comment

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

@awelc Do we need to call this out specifically? Does it build as part of cargo build --release?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is indeed!

@@ -156,7 +156,7 @@ jobs:
done

mv ./target/debug/sui${{ env.extention }} ${{ env.TMP_BUILD_DIR }}/sui-debug${{ env.extention }}
mv ./external-crates/move/target/release/move-analyzer${{ env.extention }} ${{ env.TMP_BUILD_DIR }}/move-analyzer${{ env.extention }}
mv ./target/release/move-analyzer${{ env.extention }} ${{ env.TMP_BUILD_DIR }}/move-analyzer${{ env.extention }}
Copy link
Contributor

Choose a reason for hiding this comment

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

same here, I think we can just remove this line if it builds as part of cargo build --release

Copy link
Contributor

@ebmifa ebmifa May 25, 2024

Choose a reason for hiding this comment

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

I think all we have to do is add the sui-move-lsp to https://github.com/MystenLabs/sui/blob/main/binary-build-list.json, and it will get packaged automatically, just like the rest of them, as long as it's in the target/release location

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for pointing that out! I followed the advice, but added move-analyzer there as I believe it should be the name of the binary rather than the build target (from what I see the exe extension is added for Windows build so we should indeed be good there)

Copy link
Contributor

@tnowacki tnowacki left a comment

Choose a reason for hiding this comment

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

No comments on the release structuring or anything, but otherwise seems fine to me

@awelc awelc merged commit 6129324 into main May 28, 2024
48 checks passed
@awelc awelc deleted the aw/ide-version-move-analyzer branch May 28, 2024 21:28
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.

4 participants