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

Fix sui move build with --path argument when using relative path. #17155

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

nikos-terzo
Copy link
Contributor

@nikos-terzo nikos-terzo commented Apr 15, 2024

Description

Fix a bug which reproduces with:

sui move new test_rel_path
sui move build --path ./test_rel_path

base::reroot_path() modifies cwd which results in a second call during resolve_lock_file_path() to abort.

Test plan

Run above commands with the committed changes.


Release notes

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI: sui move build --path <relative_path> does not abort with os error 2
  • Rust SDK:

Copy link

vercel bot commented Apr 15, 2024

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

Name Status Preview Comments Updated (UTC)
sui-core ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 15, 2024 6:38pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Apr 15, 2024 6:38pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Apr 15, 2024 6:38pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Apr 15, 2024 6:38pm

@nikos-terzo nikos-terzo changed the title Fix building with --path argument when using relative path. Fix sui move build with --path argument when using relative path. Apr 15, 2024
Copy link
Member

@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.

This seems reasonable to me, thanks for the fix @nikos-terzo !

@nikos-terzo nikos-terzo enabled auto-merge (squash) April 16, 2024 11:14
@nikos-terzo nikos-terzo merged commit 384a065 into main Apr 16, 2024
43 of 44 checks passed
@nikos-terzo nikos-terzo deleted the nikost/sui-move-build_with-rel-path branch April 16, 2024 11:36
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.

2 participants