andy-5 / wslgit

Use Git installed in Bash on Windows/Windows Subsystem for Linux (WSL) from Windows and Visual Studio Code (VSCode)
MIT License
1.18k stars 59 forks source link

Access denied on ARM64 #83

Closed XiaoXice closed 4 years ago

XiaoXice commented 4 years ago

I tried to cross-compile it with:

cargo build --release --target=aarch64-pc-windows-msvc

But when I try to run it, I get: image The Chinese character "拒绝访问" means "Access denied" in English

XiaoXice commented 4 years ago

I tried again, and i find that it only works with a Administrator permission. If i open the vscode with admin permission, it can work normally. But for obvious reasons, i can't do it. Is there any workwround?

andy-5 commented 4 years ago

Interesting, thank you for reporting this issue. I think you are the first one to try it on an ARM based device. Unfortunately, I've no idea why it would require Administrator permissions on ARM.

Is the executable wslgit.exe owned by your normal user (maybe you compiled it in an Administrator console)?

Can you execute something like wsl bash -c "git --version" from the command line or from PowerShell as a normal user?

XiaoXice commented 4 years ago

Okey, I fixed it. Once you built it in the git bash, it will require admin permission. I rebuilt it in cmd.exe, and it works well on ARM64. Thanks very much!