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

Plugin should start Bazel process elevated on Windows #17

Open
konste opened this issue Mar 4, 2021 · 0 comments
Open

Plugin should start Bazel process elevated on Windows #17

konste opened this issue Mar 4, 2021 · 0 comments

Comments

@konste
Copy link

konste commented Mar 4, 2021

Bazel loves symlinks and uses them very often. By default on Windows Bazel uses file copy instead of symlinks, but can use real symlinks when startup option --windows_enable_symlinks is specified.

In our case Windows build agents use Windows Server 2016 and for the process to be allowed creating symlinks it must be run elevated. The user which runs TeamCity agent has admin permissions, but unfortunately it is still necessary for this plugin to start Bazel process elevated for the symlinks to work.

It seems the optimal behavior for the plugin is to use "highest available" permission, i.e. elevate when the user is an admin and run as a regular user otherwise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant