starcoin icon indicating copy to clipboard operation
starcoin copied to clipboard

[MPM] move-package-manager prompts HOME environment variable not found on Windows platform

Open yubing744 opened this issue 2 years ago • 1 comments

Bug Report

MPM prompts HOME environment variable not found on Windows platform。

OS: Windows 10 mpm: v1.11.9-alpha

Current behavior:

image

Expected behavior:

No error message.

Steps to reproduce:

git clone https://github.com/starcoinorg/guide-to-move-package-manager.git
cd simple-nft
mpm.exe package build

Related code:

https://github.com/starcoinorg/move/blob/ae12f353227a01da84efeec99943c6185afec338/language/tools/move-package/src/source_package/manifest_parser.rs#L327

Other information:

None

yubing744 avatar May 12 '22 00:05 yubing744

We should use crate dirs-next to get home dir in move-package.

dirs_next::home_dir()

jolestar avatar May 12 '22 02:05 jolestar

resolved

jolestar avatar Oct 18 '22 11:10 jolestar