-
Notifications
You must be signed in to change notification settings - Fork 17
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(iota-move): fix os error 2
for iota move new
command using <NAME>
with uppercase letter(s)
#4916
fix(iota-move): fix os error 2
for iota move new
command using <NAME>
with uppercase letter(s)
#4916
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any other place in the stack where package names are assumed to be lowercase? @valeriyr
Afaik the on-chain packages are always denoted via their IDs, so the package name is simply a client side concept right now, correct?
It looks like the issue can be reproduced only on Linux. Yesterday I tried it locally without changes from this PR on macOS and the result was the following:
|
In a
|
@valeriyr, yes, I discovered the issue and tested the changes on Linux, I didn't have the chance to check it on macOS. Nevertheless, I am surprised how and why the issue is not reproduced on macOS: when using iota/crates/iota-move/src/new.rs Line 30 in 6179d35
However, ./xxx might not exist, which results in attempts to write to a non-existing path:iota/crates/iota-move/src/new.rs Lines 31 to 44 in 6179d35
Also, this iota/crates/iota-move/src/new.rs Lines 28 to 29 in 6179d35
creates and writes to ./Xxx (I think that's correct), but everything below that will attempt to write to ./xxx .
|
FYI: MacOS is by default case-insensitive |
Thanks, @alexsporn, that explains why the issue is not reproducible on macOS. |
…ppercase-letter-in-name
Description of change
<NAME>
instead of its lowercase variant to obtain the correct and existing path for writing.<NAME>
validation error message: since<NAME>
is validated as anIdentifier
, a valid<NAME>
can also start with an uppercase letter or underscore.Links to any relevant issues
Fixes #4895.
Type of change
How the change has been tested
(EDIT: On Linux) Run the following before and after the change:
Change checklist