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

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

Open
timsavage opened this issue Apr 22, 2024 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@timsavage
Copy link

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):

  • OS: Windows 11
  • Architecture: amd64
  • Version: 0.6.7

Configuration:

  • VMU (Version Map URL) or alias: default

Additional context
Add any other context about the problem here.

@tristanisham
Copy link
Owner

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.

@tristanisham tristanisham self-assigned this May 7, 2024
@tristanisham tristanisham added bug Something isn't working help wanted Extra attention is needed labels May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants