tristanisham / zvm

zvm (Zig Version Manager) lets you easily install/upgrade between different versions of Zig.
https://www.zvm.app
MIT License
368 stars 28 forks source link

[BUG] ZVM on windows fails to make a symlink on windows for non-admin users #79

Open timsavage opened 3 months ago

timsavage commented 3 months ago

Describe the bug ZVM is asking for administrative privileges to create a link on windows between an installed version and the common ~/.zvm/bin folder.

As both of these locations are within the users home folder (C:\users\USERNAME) these should not be required.

While Administrative privileges are available for personal computers, this is not always an option if your computer is managed by a company.

To Reproduce Steps to reproduce the behavior:

  1. When running as a user that does not have Administrator priviledges
  2. Run zvm use ...
  3. See error

2024/02/22 10:34:50 ERRO unable to symlink as Administrator symlink C:\Users\USERNAME.zvm\0.12.0 C:\Users\USERNAME.zvm\bin: A required privilege is not held by the client.

Expected behavior Link from ~/.zvm/VERSION is created to ~/.zvm/bin

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Configuration:

Additional context Add any other context about the problem here.

tristanisham commented 2 months ago

Okay, thanks Tim. Could you re-run the commands you've been trying with ZVM_DEBUG=1 as an environment variable? It should give us more info.