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): sui move new command fails with os error 2 if using <NAME> with uppercase letter(s) #21313

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

roman1e2f5p8s
Copy link
Contributor

Creating a new Move package with the sui move new command using only the required argument <NAME> fails with No such file or directory (os error 2) if <NAME> contains uppercase letter(s).

Porting over iotaledger/iota/issues/4895.

Description

Describe the changes or additions included in this PR.

  • Use the provided <NAME> instead of its lowercase variant to obtain the correct and existing path for writing.
  • Update <NAME> validation error message: since <NAME> is validated as an Identifier, a valid <NAME> can also start with an uppercase letter or underscore.

Test plan

How did you test the new or updated feature?

The issue can be tested before and after the proposed changes as follows:

cargo build -p sui
./target/debug/sui move new Xxx

Note

The issue seems to be reproducible only on Linux.
On MacOS, the bug might not be reproducible due to MacOS default case-insensitivity.


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • gRPC:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:

Copy link

vercel bot commented Feb 21, 2025

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Feb 21, 2025 11:14pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Feb 21, 2025 11:14pm

Copy link
Contributor

@mdgeorge4153 mdgeorge4153 left a comment

Choose a reason for hiding this comment

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

Looks good. Maybe worth a reg test?

@roman1e2f5p8s
Copy link
Contributor Author

Looks good. Maybe worth a reg test?

Hi @mdgeorge4153, do you mean adding an integration test under sui-move?

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